1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;NOTE: ODS statements in the SAS Studio environment may disable some output features.7172 /* grapefruit1.sas */73 title "Oneway ANOVA with repeated measures";74 title2 'Grapefruit data (Applied linear statistical models, 5th ed., Prob 27.6)';7576 data grape1;77 infile '/home/brunner0/441s20/grapefruit1.data.txt' firstobs=2;78 input store sales1-sales3;79 label sales1 = 'Sales at Price 1'80 sales2 = 'Sales at Price 2'81 sales3 = 'Sales at Price 3';82 d12 = sales1-sales2; d13 = sales1-sales3; d23=sales2-sales3;83NOTE: The infile '/home/brunner0/441s20/grapefruit1.data.txt' is:Filename=/home/brunner0/441s20/grapefruit1.data.txt,Owner Name=brunner0,Group Name=oda,Access Permission=-rw-r--r--,Last Modified=01Mar2020:17:02:42,File Size (bytes)=522NOTE: 8 records were read from the infile '/home/brunner0/441s20/grapefruit1.data.txt'.The minimum record length was 56.The maximum record length was 56.NOTE: The data set WORK.GRAPE1 has 8 observations and 7 variables.NOTE: DATA statement used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 761.34kOS Memory 30376.00kTimestamp 03/01/2020 10:15:19 PMStep Count 66 Switch Count 2Page Faults 0Page Reclaims 161Page Swaps 0Voluntary Context Switches 18Involuntary Context Switches 0Block Input Operations 0Block Output Operations 26484 proc means n mean stddev maxdec=3;85 var sales1-sales3;86 run;NOTE: There were 8 observations read from the data set WORK.GRAPE1.NOTE: PROCEDURE MEANS used (Total process time):real time 0.03 secondsuser cpu time 0.03 secondssystem cpu time 0.01 secondsmemory 8416.43kOS Memory 36796.00kTimestamp 03/01/2020 10:15:19 PMStep Count 67 Switch Count 1Page Faults 0Page Reclaims 1691Page Swaps 0Voluntary Context Switches 17Involuntary Context Switches 0Block Input Operations 0Block Output Operations 88788 proc reg plots=none;89 title3 'Test H0: mu1=mu2=mu3 with proc reg';90 model d12 d13 = ;91 Price: mtest intercept=0;92 run;9394 /* Linear combinations of response variables can be95 specified within proc reg rather than in the data step. */9697 quit;NOTE: PROCEDURE REG used (Total process time):real time 0.09 secondsuser cpu time 0.09 secondssystem cpu time 0.00 secondsmemory 2870.56kOS Memory 33216.00kTimestamp 03/01/2020 10:15:19 PMStep Count 68 Switch Count 2Page Faults 0Page Reclaims 261Page Swaps 0Voluntary Context Switches 17Involuntary Context Switches 0Block Input Operations 0Block Output Operations 7297 ! /* For some reason, this is needed to make ods select work. */98 ods select MultStat;99 proc reg plots=none;100 title3 'Specifying linear combinations within proc reg';101 model sales1 sales2 sales3 = ;102 Price: mtest intercept=0, sales1-sales2,103 sales2-sales3;104 run;105NOTE: PROCEDURE REG used (Total process time):real time 0.02 secondsuser cpu time 0.02 secondssystem cpu time 0.00 secondsmemory 2525.84kOS Memory 33216.00kTimestamp 03/01/2020 10:15:19 PMStep Count 69 Switch Count 2Page Faults 0Page Reclaims 260Page Swaps 0Voluntary Context Switches 17Involuntary Context Switches 0Block Input Operations 0Block Output Operations 56106 proc glm;107 title3 'Test H0: mu1=mu2=mu3 with proc glm';108 model sales1-sales3 = ;109 repeated price / short summary mean;110 run;111 /* Could have done ods select MultStat -- no need for a quit this time. */112NOTE: PROCEDURE GLM used (Total process time):real time 0.20 secondsuser cpu time 0.21 secondssystem cpu time 0.00 secondsmemory 2052.56kOS Memory 32696.00kTimestamp 03/01/2020 10:15:19 PMStep Count 70 Switch Count 3Page Faults 0Page Reclaims 222Page Swaps 0Voluntary Context Switches 23Involuntary Context Switches 0Block Input Operations 0Block Output Operations 384113 proc means mean t probt maxdec=3;114 title3 'Pairwise matched t-tests';115 var d12 d13 d23;116 run;NOTE: There were 8 observations read from the data set WORK.GRAPE1.NOTE: PROCEDURE MEANS used (Total process time):real time 0.02 secondsuser cpu time 0.02 secondssystem cpu time 0.01 secondsmemory 6548.09kOS Memory 37564.00kTimestamp 03/01/2020 10:15:19 PMStep Count 71 Switch Count 2Page Faults 0Page Reclaims 1499Page Swaps 0Voluntary Context Switches 24Involuntary Context Switches 0Block Input Operations 0Block Output Operations 0117 quit;118119120 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;131