1308 options pageno=1;
NOTE: PROCEDURE GLM used:
real time 32.40 seconds
cpu time 0.02 seconds
1309 data nomiss;
1310 INPUT Trt $ Rep Yield;
1311 datalines;
NOTE: The data set WORK.NOMISS has 12 observations and 3 variables.
NOTE: DATA statement used:
real time 0.03 seconds
cpu time 0.02 seconds
1324 ;;
1325 proc print;
1326 title 'Printout of RCBD Data with No Missing Data';
1327 run;
NOTE: There were 12 observations read from the data set WORK.NOMISS.
NOTE: PROCEDURE PRINT used:
real time 0.00 seconds
cpu time 0.00 seconds
1328 proc anova;
1329 classes REP TRT;
1330 model yield=rep TRT;
1331 means TRT/lsd;
1332 title 'ANOVA for RCBD with No Missing Data';
1333 run;
NOTE: PROCEDURE ANOVA used:
real time 0.05 seconds
cpu time 0.02 seconds
1334 data rcbdmiss;
1335 INPUT Trt $ Rep Yield;
1336 datalines;
NOTE: The data set WORK.RCBDMISS has 12 observations and 3 variables.
NOTE: DATA statement used:
real time 0.01 seconds
cpu time 0.00 seconds
1349 ;;
1350 *Comment: Note that missing data is replaced with a period;
1351 proc print;
1352 title 'Printout of RCBD Data with One Missing Value';
1353 run;
NOTE: There were 12 observations read from the data set WORK.RCBDMISS.
NOTE: PROCEDURE PRINT used:
real time 0.01 seconds
cpu time 0.01 seconds
1354 proc glm;
1355 *Comment: The PROC GLM statement (general linear models) must be used when you have
1355! missing
1356 data. The PROC ANOVA statement will not work;
1357 *Note: The results Sum of Squares calculated in this ANOVA will be slightly different
1357! from
1358 those in your notes since the PROC GLM method was used.;
1359 classes rep trt;
1360 model yield=rep trt;
1361 lsmeans trt/pdiff;
1362 *Comment: Since there is a missing value, we must ask for least square means to be
1362! calculated
1363 instead of traditional means. This is done by using the LSMEANS statement instead of the
1364 MEANS statement.
1365 *Comment: The PDIFF statement requests t-tests between each pair of treatments so mean
1366 separation can be performed. The PDIFF statement only works under PROC GLM.;
1367 Title 'ANOVA for a RCBD with One Missing Value';
1368 run;