Lab1 - Lab #1 - Wed, January 18, 2012 Due by the beginning...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab #1 - Wed, January 18, 2012 Due by the beginning of Jan 20 (Friday)’s class. When turning in labs: BE SURE TO PUT YOUR NAME, CLASS SECTION # and TIME, AND THE LAB # ON YOUR SUBMISSION. BE SURE TO LABEL EACH PART WITH THE PROBLEM NUMBER AND PUT THEM IN LOGICAL ORDER. Finally, Staple all the pages together. 1 POINT WILL BE CUT OFF FOR NOT DOING SO. DON’T SPAM with SAS OUTPUTS! ONLY attach results relevant to the questions. ONLY a hard copy is accepted. Purposes: 1) Get familiar with SAS 2) DATA statement 3) infiling and proc print 4) producing histograms When you first open SAS you will see this window:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The program editor window is where you will spend most of your time entering SAS code. In each lab I will provide template SAS coding or “learning code”. By studying the code provided and running it in SAS you will get to see how different pieces of code work and the resulting output they provide in SAS. Below is the first set of learning code. DATALINES: Creating datasets in SAS. SAS Learning code: data a1; /*creates a data set called a1 */ input y z @@; /* define two variables y and z, @@ is used here to allow more than one obs per line */ datalines ; 1 1 0 8 1 6 0 1 0 1 2 5 0 3 1 0 1 0 1 4 2 4 1 0 0 0 0 1 1 2 1 1 0 4 1 0 1 4 1 0 1 3 0 0 0 1 0 1 1 0 1 1 2 3 0 2 1 4 2 6 2 6 1 0 1 1 0 1 2 8 1 3
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Lab1 - Lab #1 - Wed, January 18, 2012 Due by the beginning...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online