turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- Multi-Level within-subject variables in proc mixed...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

02-03-2015 06:09 PM

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

Group | Subject ID | Variable1 | Variable2 | Variable3 | Accuracy |
---|---|---|---|---|---|

A | 001 | A | 1 | 1 | .13 |

A | 001 | A | 1 | 2 | .21 |

A | 001 | A | 1 | 3 | .33 |

A | 001 | A | 1 | 4 | .67 |

A | 001 | A | 1 | 5 | .95 |

A | 001 | A | 2 | 1 | .15 |

A | 001 | A | 2 | 2 | .19 |

A | 001 | A | 2 | 3 | .34 |

A | 001 | A | 2 | 4 | .58 |

A | 001 | A | 2 | 5 | .87 |

A | 001 | A | 3 | 1 | .15 |

A | 001 | A | 3 | 2 | .23 |

A | 001 | A | 3 | 3 | .34 |

A | 001 | A | 3 | 4 | .76 |

A | 001 | A | 3 | 5 | .91 |

A | 001 | B | 1 | 1 | .23 |

A | 001 | B | 1 | 2 | .35 |

A | 001 | B | 1 | 3 | .47 |

A | 001 | B | 1 | 4 | .88 |

... | ... | ... | ... | ... | ... |

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 ;