1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;NOTE: ODS statements in the SAS Studio environment may disable some output features.7374 /* grapefruit1.sas */75 title "Oneway ANOVA with repeated measures";76 title2 'Grapefruit data (Applied linear statistical models, 5th ed., Prob 27.6)';7778 data grape1;79 infile '/home/u1407221/441s24/data/grapefruit1.data.txt' firstobs=2;80 input store sales1-sales3;81 label sales1 = 'Sales at Price 1'82 sales2 = 'Sales at Price 2'83 sales3 = 'Sales at Price 3';84 /* Pairwise differences */85 d12 = sales1-sales2; d13 = sales1-sales3; d23=sales2-sales3;86NOTE: The infile '/home/u1407221/441s24/data/grapefruit1.data.txt' is:Filename=/home/u1407221/441s24/data/grapefruit1.data.txt,Owner Name=u1407221,Group Name=oda,Access Permission=-rw-r--r--,Last Modified=24Mar2024:18:49:46,File Size (bytes)=522NOTE: 8 records were read from the infile '/home/u1407221/441s24/data/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.01 secondssystem cpu time 0.00 secondsmemory 762.09kOS Memory 27560.00kTimestamp 03/24/2024 11:13:01 PMStep Count 66 Switch Count 2Page Faults 0Page Reclaims 159Page Swaps 0Voluntary Context Switches 22Involuntary Context Switches 0Block Input Operations 0Block Output Operations 26487 proc means n mean stddev maxdec=3;88 var sales1-sales3;89 run;NOTE: There were 8 observations read from the data set WORK.GRAPE1.NOTE: PROCEDURE MEANS used (Total process time):real time 0.04 secondsuser cpu time 0.04 secondssystem cpu time 0.01 secondsmemory 8645.21kOS Memory 34492.00kTimestamp 03/24/2024 11:13:01 PMStep Count 67 Switch Count 1Page Faults 0Page Reclaims 1729Page Swaps 0Voluntary Context Switches 17Involuntary Context Switches 1Block Input Operations 0Block Output Operations 89091 proc reg plots=none data=grape1;92 title3 'Test H0: mu1=mu2=mu3 with proc reg';93 model d12 d13 = ;94 Price: mtest intercept=0;95 run;9697 /* Linear combinations of response variables can be98 specified within proc reg rather than in the data step.99 Secify an equivalent null hypothesis, too. */100101 quit;NOTE: PROCEDURE REG used (Total process time):real time 0.07 secondsuser cpu time 0.07 secondssystem cpu time 0.00 secondsmemory 2911.40kOS Memory 31424.00kTimestamp 03/24/2024 11:13:01 PMStep Count 68 Switch Count 2Page Faults 0Page Reclaims 396Page Swaps 0Voluntary Context Switches 22Involuntary Context Switches 1Block Input Operations 0Block Output Operations 72101 ! /* For some reason, this is needed to make ods select work. */102 ods select MultStat;103 proc reg plots=none data=grape1;104 title3 'Specifying linear combinations within proc reg';105 model sales1 sales2 sales3 = ;106 Price: mtest intercept=0, sales1-sales2,107 sales2-sales3;108 run;109NOTE: PROCEDURE REG used (Total process time):real time 0.02 secondsuser cpu time 0.02 secondssystem cpu time 0.00 secondsmemory 2471.21kOS Memory 31936.00kTimestamp 03/24/2024 11:13:01 PMStep Count 69 Switch Count 2Page Faults 0Page Reclaims 302Page Swaps 0Voluntary Context Switches 21Involuntary Context Switches 0Block Input Operations 0Block Output Operations 56110 proc glm data=grape1;111 title3 'Test H0: mu1=mu2=mu3 with proc glm';112 model sales1-sales3 = ;113 repeated price / short summary mean;114 run;115 /* Could have done ods select MultStat -- no need for a quit this time. */116117 /* Note the Greenhouse-Geisser and Huynh-Feldt corrections for departures from118 "sphericity." Sphericity means equal variances of the differences. */119120NOTE: PROCEDURE GLM used (Total process time):real time 0.16 secondsuser cpu time 0.16 secondssystem cpu time 0.01 secondsmemory 2157.31kOS Memory 31416.00kTimestamp 03/24/2024 11:13:01 PMStep Count 70 Switch Count 3Page Faults 0Page Reclaims 238Page Swaps 0Voluntary Context Switches 20Involuntary Context Switches 1Block Input Operations 0Block Output Operations 384121 proc means mean t probt maxdec=3 data=grape1;122 title3 'Pairwise matched t-tests';123 var d12 d13 d23;124 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.01 secondssystem cpu time 0.00 secondsmemory 6571.31kOS Memory 36284.00kTimestamp 03/24/2024 11:13:01 PMStep Count 71 Switch Count 2Page Faults 0Page Reclaims 1471Page Swaps 0Voluntary Context Switches 26Involuntary Context Switches 0Block Input Operations 0Block Output Operations 0125 quit;126127128 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;140