e3 - Example E3 SAS Program data mileage input size $ do...

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

View Full Document Right Arrow Icon
Example E3 SAS Program data mileage; input size $ @; do i= 1 to 4 ; input mpg @; output ; end ; drop i; datalines ; 300 16.6 16.9 15.8 15.5 350 14.4 14.9 14.2 14.1 400 12.4 12.7 13.3 13.6 450 11.5 12.8 12.1 12.0 ; run ; proc glm data =mileage; class size; model mpg = size/ p ; means size/ lsd ; contrast 'Linear Trend' size - 3 - 1 1 3 ; estimate 'Linear Trend' size - 3 - 1 1 3 ; output out =stats1 p=fitted r=residual; title 'Analysis of Gas Mileage Data' ; run ; libname mylib 'C:\Documents and Settings\. ..\stat479' ; data mylib.stats1; set stats1; run ;
Background image of page 1

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

View Full DocumentRight Arrow Icon
3 data mileage; 4 input size $ @; 5 do i=1 to 4; 6 input mpg @; 7 output; 8 end; 9 drop i; 10 datalines; NOTE: The data set WORK.MILEAGE has 16 observations and 2 variables. NOTE: DATA statement used (Total process time): real time 0.03 seconds cpu time 0.01 seconds 15 ; 16 run; 17 18 proc glm data=mileage; 19 class size; 20 model mpg = size/p; 21 means size/lsd; 22 contrast 'Linear Trend' size -3 -1 1 3; 23 estimate 'Linear Trend' size -3 -1 1 3; 24 output out=stats1 p=fitted r=residual; 25 title 'Analysis of Gas Mileage Data'; 26 run; 27
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.

This note was uploaded on 02/18/2012 for the course STAT 479 taught by Professor Staff during the Spring '08 term at Iowa State.

Page1 / 8

e3 - Example E3 SAS Program data mileage input size $ do...

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