*** REPEATED MEASURES ANALYSIS OF VARIANCE * Read in the data from {DSST.xls}. ; PROC IMPORT DATAFILE = 'C:\Documents and Settings\richc\My Documents\CPH931F08\DSST.xls' OUT = DSST DBMS = EXCEL REPLACE; SHEET = DSST; GETNAMES = YES; RUN; * Initiate a ``transcript'' in the Word file {DSST.rtf}. ; ODS RTF FILE = 'C:\Documents and Settings\richc\My Documents\CPH931F08\DSST.rtf'; * Use SAS's PROC MIXED to perform a repeated measures analysis of * variance. The response variable (treated as if it were continuous) * is the number of correct trials on the digit symbol substitution task. * The explanatory variable (categorical) is the experimental condition. * The blocking variable (categorical) is the human subject. In this * analysis we are confining attention to the third time period within * the first replication. ; PROC MIXED DATA = DSST method = type3 covtest; CLASS SUBJECT CONDITION; WHERE ((REPLICAT=0)&(TIME=3)); MODEL CORRECTTRIALS = CONDITION / SOLUTION noint; RANDOM SUBJECT; contrast '1 versus 2' CONDITION 1 -1 0 0 ; contrast '1 versus 3' CONDITION 1 0 -1 0 ; contrast '1 versus 4' CONDITION 1 0 0 -1 ; contrast '2 versus 3' CONDITION 0 1 -1 0 ; contrast '2 versus 4' CONDITION 0 1 0 -1 ; contrast '3 versus 4' CONDITION 0 0 1 -1 ; RUN; * End Word transcript. ; ODS RTF CLOSE; RUN;