23d-Anova-SplitPlot

23d-Anova-SplitPlot - EXST7015 : Statistical Techniques II...

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

View Full Document Right Arrow Icon
EXST7015 : Statistical Techniques II Geaghan Split-plot and Repeated measures designs SAS example Page 1 23d-Anova-SplitPlot.doc 1 *****************************************************************; 2 *** Example of a Repeated Measures Design ***; 3 *** From Snedecor & Cochran, 1960 (pg 379) with modifications ***; 4 *****************************************************************; 5 OPTIONS PS=256 LS=121 NOCENTER NODATE PAGENO=1 NONUMBER; 6 DATA HARVEST (KEEP=CUTTING BLOCK YEAR HARVEST); INFILE CARDS MISSOVER; 7 ARRAY C YIELD1-YIELD4; 8 INPUT BLOCK $ YEAR $ YIELD1-YIELD4; 9 DO I = 1 TO 4; 10 IF I = 1 THEN CUTTING = '6/1 '; 11 IF I = 2 THEN CUTTING = '6/15'; 12 IF I = 3 THEN CUTTING = '7/1 '; 13 IF I = 4 THEN CUTTING = '7/15'; 14 HARVEST = C{I}; OUTPUT; END; 15 TITLE1 'EXST7015: Total Asparagus weight harvested before 6/1 (measures vigor)'; 16 TITLE2 'Repeated measure is 4 years of the study'; 17 CARDS; NOTE: The data set WORK.HARVEST has 64 observations and 4 variables. NOTE: DATA statement used: real time 0.07 seconds cpu time 0.07 seconds 17 ! RUN; 34 ; 35 PROC PRINT; TITLE3 'RAW DATA LISTING'; RUN; NOTE: There were 64 observations read from the data set WORK.HARVEST. NOTE: The PROCEDURE PRINT printed page 1. NOTE: PROCEDURE PRINT used: real time 0.03 seconds cpu time 0.03 seconds EXST7015: Total Asparagus weight harvested before 6/1 (measures vigor) Repeated measure is 4 years of the study RAW DATA LISTING Obs BLOCK YEAR CUTTING HARVEST 1 1 0 6/1 230 2 1 0 6/15 212 3 1 0 7/1 183 4 1 0 7/15 148 5 1 1 6/1 324 6 1 1 6/15 415 7 1 1 7/1 320 8 1 1 7/15 246 9 1 2 6/1 512 10 1 2 6/15 584 11 1 2 7/1 456 12 1 2 7/15 304 13 1 3 6/1 399 14 1 3 6/15 386 15 1 3 7/1 255 16 1 3 7/15 144 17 2 0 6/1 216 18 2 0 6/15 190 19 2 0 7/1 186 20 2 0 7/15 126 21 2 1 6/1 317 22 2 1 6/15 296 23 2 1 7/1 295 24 2 1 7/15 201 25 2 2 6/1 448 26 2 2 6/15 471 27 2 2 7/1 387 28 2 2 7/15 289 29 2 3 6/1 361 30 2 3 6/15 280 31 2 3 7/1 187 32 2 3 7/15 83 33 3 0 6/1 219 34 3 0 6/15 151 35 3 0 7/1 177 36 3 0 7/15 107 37 3 1 6/1 357 38 3 1 6/15 278 39 3 1 7/1 298 40 3 1 7/15 192 41 3 2 6/1 496 42 3 2 6/15 399 43 3 2 7/1 427 44 3 2 7/15 271 45 3 3 6/1 344 46 3 3 6/15 254 47 3 3 7/1 239 48 3 3 7/15 90 49 4 0 6/1 200 50 4 0 6/15 150 51 4 0 7/1 209 52 4 0 7/15 168 53 4 1 6/1 362 54 4 1 6/15 336 55 4 1 7/1 328 56 4 1 7/15 226 57 4 2 6/1 540 58 4 2 6/15 485 59 4 2 7/1 462 60 4 2 7/15 312 61 4 3 6/1 381 62 4 3 6/15 279 63 4 3 7/1 244 64 4 3 7/15 168
Background image of page 1

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

View Full DocumentRight Arrow Icon
EXST7015 : Statistical Techniques II Geaghan Split-plot and Repeated measures designs SAS example Page 2 23d-Anova-SplitPlot.doc 36 PROC MIXED DATA=HARVEST CL; CLASSES BLOCK YEAR CUTTING; 37 TITLE3 'Split plot Analysis of Variance with PROC MIXED and AR(1) covariance'; 38 MODEL HARVEST = CUTTING YEAR CUTTING*YEAR / htype=3 outp=ResidDataP; 39 RANDOM BLOCK BLOCK*CUTTING; 40 REPEATED YEAR / SUBJECT=BLOCK*CUTTING TYPE=AR(1); 41 lsmeans cutting*year / slice=year; 42 lsmeans cutting year cutting*year / pdiff adjust=tukey; 43 RUN; NOTE: Convergence criteria met. NOTE: The data set WORK.RESIDDATAP has 64 observations and 11 variables. NOTE: The PROCEDURE MIXED printed pages 2-3. NOTE: PROCEDURE MIXED used: real time 0.54 seconds cpu time 0.54 seconds 43 ! QUIT;OPTIONS PS=50 LS=80; EXST7015: Total Asparagus weight harvested before 6/1 (measures vigor) Repeated measure is 4 years of the study Split plot Analysis of Variance with PROC MIXED and AR(1) covariance The Mixed Procedure Model Information Data Set WORK.HARVEST Dependent Variable HARVEST Covariance Structures Variance Components, Autoregressive
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 12/29/2011 for the course EXST 7087 taught by Professor Wang,j during the Fall '08 term at LSU.

Page1 / 21

23d-Anova-SplitPlot - EXST7015 : Statistical Techniques II...

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