1 The SAS System 16:53 Wednesday, January 26, 2011 NOTE: Copyright (c) 2002-2008 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software 9.2 (TS2M2) Licensed to UNIVERSITY OF FLORIDA-T/R, Site 70055083. NOTE: This session is executing on the Linux 2.6.24-28-server (LINUX) platform. You are running SAS 9. Some SAS 8 files will be automatically converted by the V9 engine; others are incompatible. Please see http://support.sas.com/rnd/migration/planning/platform/64bit.html PROC MIGRATE will preserve current SAS file attributes and is recommended for converting all your SAS libraries from any SAS 8 release to SAS 9. For details and examples, please see http://support.sas.com/rnd/migration/index.html This message is contained in the SAS news file, and is presented upon initialization. Edit the file "news" in the "misc/base" directory to display site-specific news and information in the program log. The command line option "-nonews" will prevent this display. NOTE: SAS initialization used: real time 0.02 seconds cpu time 0.02 seconds 1 options ps=500 ls=76; 2 3 data one; 4 retain brandnum 0; 5 infile 'winwine.dat' lrecl=218; 6 input brand $ 1-25 price score01-score23; 7 brandnum=brandnum+1; 8 if brandnum<=5 then do; 9 color=1; 10 type=1; 11 end; 12 else if brandnum <=10 then do; 13 color=2; 14 type=1; 15 end; 16 else if brandnum <=15 then do; 17 color=1; 18 type=2; 19 end; 20 else if brandnum <=20 then do; 21 color=2; 22 type=2; 23 end; 24 cprice=price-9.464; 25 score=score01; output; 26 score=score02; output; 27 score=score03; output; 28 score=score04; output; 29 score=score05; output; 30 score=score06; output; 31 score=score07; output; 32 score=score08; output; 33 score=score09; output; 34 score=score10; output; 35 score=score11; output; 36 score=score12; output; 37 score=score13; output; 38 score=score14; output; 39 score=score15; output; 40 score=score16; output; 41 score=score17; output; 42 score=score18; output; 43 score=score19; output; 44 score=score20; output; 45 score=score21; output; 46 score=score22; output; 47 score=score23; output; 48 drop score01-score23; 49 50 * brandnum=brandnum+1; 51 /* 52 do rater=1 to 3; 53 input winescr @@; 54 output; 55 end; 56 */ 57 run; NOTE: The infile 'winwine.dat' is: Filename=/home/winner/public_html/data/winwine.dat, Owner Name=winner,Group Name=winner, Access Permission=rwxrwxrwx, Last Modified=Thu Aug 4 11:28:21 2005, File Size (bytes)=4400 NOTE: 20 records were read from the infile 'winwine.dat'. The minimum record length was 218. The maximum record length was 218. One or more lines were truncated. NOTE: The data set WORK.ONE has 460 observations and 7 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.01 seconds 58 59 proc sort; 60 by brandnum; 61 NOTE: There were 460 observations read from the data set WORK.ONE. NOTE: The data set WORK.ONE has 460 observations and 7 variables. NOTE: PROCEDURE SORT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 62 data two; 63 set one; 64 by brandnum; 65 retain rater; 66 if first.brandnum then rater=0; 67 rater=rater+1; 68 run; NOTE: There were 460 observations read from the data set WORK.ONE. NOTE: The data set WORK.TWO has 460 observations and 8 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 69 /* 70 proc print; 71 run; 72 */ 73 74 quit; 75 /* 76 proc means n mean var; 77 var score; 78 run; 79 proc means n mean var; 80 class brandnum; 81 var score; 82 run; 83 84 quit; 85 86 */ 87 ods html body='winwinecase1.htm' style=statistical; NOTE: Writing HTML Body file: winwinecase1.htm 88 proc mixed cl method=ml; 89 * class brandnum; 90 model score= cprice / ddfm=satterth solution; 91 run; NOTE: 60 observations are not included because of missing values. NOTE: The PROCEDURE MIXED printed page 1. NOTE: PROCEDURE MIXED used (Total process time): real time 0.04 seconds cpu time 0.04 seconds 92 93 proc mixed cl method=ml; 94 class color; 95 model score= color / ddfm=satterth solution; 96 run; NOTE: 60 observations are not included because of missing values. NOTE: The PROCEDURE MIXED printed page 2. NOTE: PROCEDURE MIXED used (Total process time): real time 0.02 seconds cpu time 0.03 seconds 97 98 proc mixed cl method=ml; 99 class color type; 100 model score= color type(color) / ddfm=satterth solution; 101 run; NOTE: 60 observations are not included because of missing values. NOTE: The PROCEDURE MIXED printed page 3. NOTE: PROCEDURE MIXED used (Total process time): real time 0.02 seconds cpu time 0.02 seconds 102 103 104 proc mixed cl method=ml; 105 class color; 106 model score= cprice color / ddfm=satterth solution; 107 run; NOTE: 60 observations are not included because of missing values. NOTE: The PROCEDURE MIXED printed page 4. NOTE: PROCEDURE MIXED used (Total process time): real time 0.02 seconds cpu time 0.02 seconds 108 109 proc mixed cl method=ml; 110 class color type; 111 model score= cprice color type(color) / ddfm=satterth solution; 112 run; NOTE: 60 observations are not included because of missing values. NOTE: The PROCEDURE MIXED printed page 5. NOTE: PROCEDURE MIXED used (Total process time): real time 0.02 seconds cpu time 0.03 seconds 113 114 proc mixed cl covtest method=ml; 115 class color type brand; 116 model score= cprice color / ddfm=satterth solution; 117 random brand(color type); 118 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 6. NOTE: PROCEDURE MIXED used (Total process time): real time 0.03 seconds cpu time 0.03 seconds 119 120 proc mixed cl covtest method=ml; 121 class color type brand; 122 model score= cprice color / ddfm=satterth solution; 123 random int / type=un subject=brand(color type); 124 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 7. NOTE: PROCEDURE MIXED used (Total process time): real time 0.03 seconds cpu time 0.04 seconds 125 126 proc mixed cl covtest method=ml; 127 class color type rater; 128 model score= cprice color / ddfm=satterth solution; 129 random rater; 130 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 8. NOTE: PROCEDURE MIXED used (Total process time): real time 0.03 seconds cpu time 0.04 seconds 131 132 proc mixed cl covtest method=ml; 133 class color type rater brand; 134 model score= cprice color / ddfm=satterth solution; 135 random rater brand(color type); 136 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 9. NOTE: PROCEDURE MIXED used (Total process time): real time 0.03 seconds cpu time 0.04 seconds 137 138 proc mixed cl covtest method=ml; 139 class color type rater brand; 140 model score= cprice color / ddfm=satterth solution; 141 random rater rater*color; 142 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 10. NOTE: PROCEDURE MIXED used (Total process time): real time 0.04 seconds cpu time 0.04 seconds 143 144 proc mixed cl covtest method=ml; 145 class color type rater brand; 146 model score= cprice color / ddfm=satterth solution; 147 random rater rater*color brand(color type); 148 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 11. NOTE: PROCEDURE MIXED used (Total process time): real time 0.06 seconds cpu time 0.06 seconds 149 150 151 152 proc mixed cl covtest method=ml; 153 class color type rater brand; 154 model score= / ddfm=satterth solution; 155 random rater brand(color type); 156 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 12. NOTE: PROCEDURE MIXED used (Total process time): real time 0.03 seconds cpu time 0.04 seconds 157 158 159 160 proc mixed cl covtest method=ml; 161 class color type rater brand; 162 model score= / ddfm=satterth solution; 163 random rater rater*color brand(color type) / solution; 164 run; NOTE: 60 observations are not included because of missing values. NOTE: Convergence criteria met. NOTE: The PROCEDURE MIXED printed page 13. NOTE: PROCEDURE MIXED used (Total process time): real time 0.10 seconds cpu time 0.10 seconds 165 166 167 ods html close; 168 169 /* 170 proc mixed cl; 171 class color; 172 model score= price color/ ddfm=satterth solution; 173 run; 174 175 proc mixed cl; 176 class color type; 177 model score= price color type(color)/ ddfm=satterth solution; 178 run; 179 180 proc mixed cl; 181 class color brandnum; 182 model score= price color brandnum(color)/ ddfm=satterth solution; 183 run; 184 185 proc mixed cl; 186 class brandnum; 187 model score= brandnum / ddfm=satterth solution; 188 run; 189 190 proc sort; 191 by rater color type; 192 run; 193 194 proc mixed cl; 195 class rater; 196 model score= cprice / ddfm=satterth solution; 197 random int / solution cl subject=rater; 198 run; 199 200 proc mixed cl; 201 class color brand rater; 202 model score= color cprice / ddfm=satterth solution; 203 random int / solution cl type=un subject=rater; 204 run; 205 206 207 proc mixed cl; 208 class color brand rater; 209 model score= color cprice / ddfm=satterth solution; 210 random color / solution cl subject=rater type=un; 211 run; 212 213 proc mixed cl; 214 class color type brand rater; 215 model score= color type(color) cprice / ddfm=satterth solution; 216 random int / solution cl subject=rater; 217 run; 218 219 220 proc mixed cl; 221 class color type brand rater; 222 model score= color type(color) cprice / ddfm=satterth solution; 223 random color / solution cl subject=rater type=un ; 224 run; 225 226 proc sort; by rater brandnum; 227 proc mixed cl; 228 class brandnum rater color; 229 model score= color brandnum(color) / ddfm=satterth solution; 230 random int / solution cl subject=rater ; 231 run; 232 233 proc mixed cl; 234 class brandnum rater color; 235 model score= brandnum / ddfm=satterth solution; 236 random color / solution cl subject=rater type=un; 237 run; 238 239 proc mixed cl; 240 class brandnum rater; 241 model score= brandnum / noint ddfm=satterth solution; 242 random int / solution cl subject=rater ; 243 lsmeans brandnum / pdiff; 244 run; 245 246 quit; 247 248 249 250 251 252 quit; NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 0.66 seconds cpu time 0.65 seconds