Help using Base SAS procedures

Multi-Level within-subject variables in proc mixed (repeated design)

Reply
N/A
Posts: 1

Multi-Level within-subject variables in proc mixed (repeated design)

Wondering proper adaptation of proc mixed when there are multiple levels of within-subjects variables.

The below is the brief sketch of the design. It contains both within subject factors (variable1, variable2, variable3=time), and between subject variable (group).

The variable subject is included because the dataset is 'long' format.


The dataset is looks like below

GroupSubject IDVariable1Variable2Variable3Accuracy
A001A11.13
A001A12.21
A001A13.33
A001A14.67
A001A15.95
A001A21.15
A001A22.19
A001A23.34
A001A24.58
A001A25.87
A001A31.15
A001A32.23
A001A33.34
A001A34.76
A001A35.91
A001B11.23
A001B12.35
A001B13.47
A001B14.88
..................


Question_Mixed.001.jpg

Because there are many within levels (3 levels, variable 1,2,3), I have completely no idea to apply this design to SAS Proc Mixed procedure. (In basic interface of SAS Enterprise Guide, there is no option for multiple repeated variables.)


I guess in GLM, something like below is possible.


proc glm;

  classes group;

...

  repeated variable1 2, variable2 3, variable3 5;

run;


However, in proc Mixed, it seems only ONE repeated variable can be input. Is there any other methods?


proc mixed

...

repeated variable3 /subject=subject ;

Ask a Question
Discussion stats
  • 0 replies
  • 163 views
  • 0 likes
  • 1 in conversation