1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 /* classicalgrapefruit.sas */
57 title 'Grapefruit Data';
58
59 data fruit; /* Skip the first line */
60 infile '/folders/myfolders/unigrapefruit.data.txt' firstobs=2;
61 input store price sales;
62
NOTE: The infile '/folders/myfolders/unigrapefruit.data.txt' is:
Filename=/folders/myfolders/unigrapefruit.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=08Mar2016:08:21:35,
File Size (bytes)=651
NOTE: 24 records were read from the infile '/folders/myfolders/unigrapefruit.data.txt'.
The minimum record length was 24.
The maximum record length was 24.
NOTE: The data set WORK.FRUIT has 24 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
63 proc glm;
64 title2 'Classical mixed model repeated measures';
65 class price store;
66 model sales = price store;
67 means price;
68 random store / test;
69
70 /* Follow up with matched t-tests, but they require a multivariate format.
71 Read the data in again, with multiple lines of data per case. */
72
NOTE: Means from the MEANS statement are not adjusted for other terms in the model. For adjusted means, use the LSMEANS statement.
NOTE: TYPE I EMS not available without the E1 option.
NOTE: PROCEDURE GLM used (Total process time):
real time 0.82 seconds
cpu time 0.30 seconds
73 data mvfruit;
74 infile '/folders/myfolders/unigrapefruit.data.txt' firstobs=2;
75 input store1 price1 sales1
76 store2 price2 sales2
77 store3 price3 sales3;
78 One_vs_Two = sales1-sales2;
79 One_vs_Three = sales1-sales3;
80 Two_vs_Three = sales2-sales3;
81
NOTE: The infile '/folders/myfolders/unigrapefruit.data.txt' is:
Filename=/folders/myfolders/unigrapefruit.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=08Mar2016:08:21:35,
File Size (bytes)=651
NOTE: 24 records were read from the infile '/folders/myfolders/unigrapefruit.data.txt'.
The minimum record length was 24.
The maximum record length was 24.
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.MVFRUIT has 8 observations and 12 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds
82 proc means n mean stddev t probt;
83 title2 'Matched t-tests: 0.05/3 = 0.0167';
84 var One_vs_Two One_vs_Three Two_vs_Three;
85
86
87
88 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
100