20d-AnovaRBD_baseball

20d-AnovaRBD_baseball - EXST7015 : Statistical Techniques...

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

View Full Document Right Arrow Icon
EXST7015 : Statistical Techniques II Geaghan ANOVA & Design Randomized Block Design Page 1 20d-AnovaRBD_baseball.doc 1 **EXAMPLE 1******************************************************; 2 *** The 1994 salaries of all American league baseball players ***; 3 *** as reported in USA Today on April 5, 1994. ***; 4 *** Salaries include pro-rated signing bonuses. ***; 5 *****************************************************************; 6 OPTIONS PS=256 LS=132 NOCENTER NODATE PAGENO=1; 7 dm 'log;clear;output;clear'; 8 filename input 'C:\Geaghan\EXST\EXST7015New\Fall2002\SAS\07b-AnovaRBD_baseball.DAT'; 9 10 DATA salaries; length team player $ 20; INFILE input MISSOVER; 11 INPUT Team $ 1-20 Player $ 24-43 Position $ 47-48 read $ 50-51 Salary 60-68; 12 TITLE1 'EXST7015: Salaries of all American league baseball players (1994)'; 13 TITLE2 'Salaries in thousands of dollars'; 14 DH = 'No '; if read eq 'dh' then DH = 'Yes'; drop read; 15 salary = salary / 1000; 16 lsalary = log(salary); 17 CARDS; NOTE: The infile INPUT is: File Name=C:\Geaghan\EXST\EXST7015New\Fall2002\SAS\07b-AnovaRBD_baseball.DAT, RECFM=V,LRECL=256 NOTE: 374 records were read from the infile INPUT. The minimum record length was 68. The maximum record length was 68. NOTE: The data set WORK.SALARIES has 374 observations and 6 variables. NOTE: DATA statement used: real time 0.11 seconds cpu time 0.09 seconds 17 ! RUN; 18 ; 19 PROC PRINT data=salaries; TITLE3 'RAW DATA LISTING'; RUN; NOTE: There were 374 observations read from the data set WORK.SALARIES. NOTE: The PROCEDURE PRINT printed pages 1-2. NOTE: PROCEDURE PRINT used: real time 0.06 seconds cpu time 0.06 seconds EXST7015: Salaries of all American league baseball players (1994) Salaries in thousands of dollars RAW DATA LISTING Obs team player Position Salary DH lsalary 1 Baltimore Orioles Rafael Palmeiro 1b 5406.60 No 8.59538 2 Baltimore Orioles Cal Ripken ss 5400.00 No 8.59415 3 Baltimore Orioles Mike Devereaux of 3375.00 No 8.12415 4 Baltimore Orioles Sid Fernandez p 3333.33 No 8.11173 5 Baltimore Orioles Brady Anderson of 3083.33 No 8.03377 6 Baltimore Orioles Ben McDonald p 2675.00 No 7.89170 . . . 373 Toronto Blue Jays Paul Spoljaric p 109.00 No 4.69135 374 Toronto Blue Jays Paul Menhart p 109.00 No 4.69135 21 PROC MIXED DATA=salaries cl covtest; CLASSES team position dh; 22 TITLE3 'Analysis of Variance - PROC MIXED'; 23 MODEL salary = position DH / htype=3 DDFM=Satterthwaite outp=ResidData; 24 random team; 25 lsmeans position / pdiff adjust=tukey; 26 ods output diffs=ppp; 27 ods output lsmeans=mmm; 28 *ods listing exclude diffs; 29 *ods listing exclude lsmeans; 30 run; WARNING: Length of CLASS variable team truncated to 16. NOTE: Convergence criteria met. NOTE: The data set WORK.MMM has 8 observations and 7 variables.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/29/2011 for the course EXST 7087 taught by Professor Wang,j during the Fall '08 term at LSU.

Page1 / 12

20d-AnovaRBD_baseball - EXST7015 : Statistical Techniques...

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

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