1 The SAS System 14:56 Sunday, April 14, 1996 NOTE: Copyright (c) 1989-1995 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 6.11 TS020 Licensed to UNIVERSITY OF WISCONSIN, Site 0002176032. NOTE: AUTOEXEC processing beginning; file is /usr5/sas611/autoexec.sas. NOTE: SAS initialization used: real time 0.38 seconds cpu time 0.12 seconds NOTE: AUTOEXEC processing completed. 1 options nocenter ps=100 ls=80; /* One-Way Random Effects Model */ 2 data twoway; 3 infile 'wheat.dat'; /* MJ 18/19 */ 4 input variety $ y; 5 NOTE: The infile 'wheat.dat' is: File Name=/usr1/y/yandell/.SAS/wheat.dat, Owner Name=yandell,Group Name=calsstat, Access Permission=rw-r-----, File Size (bytes)=86 NOTE: 13 records were read from the infile 'wheat.dat'. The minimum record length was 5. The maximum record length was 6. NOTE: The data set WORK.TWOWAY has 13 observations and 2 variables. NOTE: DATA statement used: real time 0.21 seconds cpu time 0.04 seconds 6 proc glm; /* THE OLD PROC GLM */ 7 class variety; 8 model y = variety / ss1 solution; 9 random variety; 10 * lsmeans variety / stderr; /* produces same results as estimate below */ 11 estimate 'grand mean' intercept 1; 12 estimate 'variety A' intercept 1 variety 1; 13 estimate 'variety B' intercept 1 variety 0 1; 14 estimate 'variety C' intercept 1 variety 0 0 1; 15 estimate 'variety D' intercept 1 variety 0 0 0 1; 16 NOTE: TYPE I EMS not available without the E1 option. NOTE: The PROCEDURE GLM printed pages 1-3. NOTE: PROCEDURE GLM used: real time 0.52 seconds cpu time 0.07 seconds 17 proc varcomp; /* THE BETTER PROC VARCOMP */ 18 class variety; 19 model y = variety; NOTE: The PROCEDURE VARCOMP printed pages 4-5. NOTE: PROCEDURE VARCOMP used: real time 0.16 seconds cpu time 0.03 seconds 20 proc varcomp method=type1; 21 class variety; 22 model y = variety; NOTE: The PROCEDURE VARCOMP printed pages 6-7. NOTE: PROCEDURE VARCOMP used: real time 0.12 seconds cpu time 0.00 seconds 23 proc varcomp method=ml; 24 class variety; 25 model y = variety; NOTE: The PROCEDURE VARCOMP printed pages 8-9. NOTE: PROCEDURE VARCOMP used: real time 0.20 seconds cpu time 0.01 seconds 26 proc varcomp method=reml; 27 class variety; 28 model y = variety; 29 NOTE: The PROCEDURE VARCOMP printed pages 10-11. NOTE: PROCEDURE VARCOMP used: real time 0.17 seconds cpu time 0.02 seconds 2 The SAS System 14:56 Sunday, April 14, 1996 30 proc mixed; /* THE NEW PROC MIXED */ 31 class variety; 32 model y = ; 33 random variety / solution; 34 estimate 'grand mean' intercept 1; 35 estimate 'variety A' intercept 1 | variety 1; 36 estimate 'variety B' intercept 1 | variety 0 1; 37 estimate 'variety C' intercept 1 | variety 0 0 1; 38 estimate 'variety D' intercept 1 | variety 0 0 0 1; NOTE: The PROCEDURE MIXED printed page 12. NOTE: PROCEDURE MIXED used: real time 0.15 seconds cpu time 0.06 seconds NOTE: The SAS System used: real time 2.06 seconds cpu time 0.38 seconds NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414