NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0) Licensed to NORTH DAKOTA UNIVERSITY SYSTEM-SYSTEMWIDE-INTERNAL, Site 0011524002. NOTE: This session is executing on the WIN_PRO platform. NOTE: SAS initialization used: real time 0.99 seconds cpu time 0.54 seconds 1 data crdsamp; 2 input Trt $ Rep Sample Yield; 3 datalines; NOTE: The data set WORK.CRDSAMP has 18 observations and 4 variables. NOTE: DATA statement used: real time 0.04 seconds cpu time 0.01 seconds 22 ;; 23 proc print; 24 title 'Printout of CRD Data with Sampling'; 25 run; NOTE: There were 18 observations read from the data set WORK.CRDSAMP. NOTE: PROCEDURE PRINT used: real time 0.04 seconds cpu time 0.04 seconds 26 proc anova; 27 classes rep sample trt; 28 model yield=trt rep*trt; 29 *comment: The rep*label statement gives you the experimental error SOV; 30 *Comment: The sampling error will be located under the Model SOV on the top of the SAS 31 output. By default, this error term is used by SAS to calculate the F-values.; 32 test h=trt e=rep*trt; 33 *Comment: The test h statement tells SAS how to run the F-test you want. The h refers 34 to the numerator of the F-test (i.e. trt)and e refers to the denominator of 35 the F-test; 36 means trt/lsd e=rep*trt; 37 *Comment: For the LSD test, you need to specifiy what MS to use to calculate the standard 38 error of the difference. By default, SAS uses the Error MS from the top of the SAS 38 ! output; 39 title 'ANOVA for CRD with Sampling'; 40 run;