Hello, I'm hoping for some assistance with the coding of a hierarchical linear model with repeated measures. I've written a code, but I'd like some verification that what I've done is proper for my data. The data were collected as part of a decision making experiment. Subjects played a game in groups of four, and each subject was assigned to a unique role within the group. These roles are labeled r, w, d, and f. Each period of the game, subjects placed orders to one another, (Order is the dependent variable in the model). The lone factor of interest in the study is a treatment condition, (labeled Condition), which had two levels. All subjects in a given group were given the same treatment (condition). In short, I'm looking at the effect of Condition on Order, while controlling for the role each subject played within their group. Subjects were nested within groups, and orders were recorded each period of the game, (repeated measurement). The code I developed is as follows: proc mixed; class period condition r w d group; model Order = condition r w d /ddfm=satterh; repeated period / subject=participant(group); lsmeans condition / pdiff; run; My concern is that perhaps I have not properly specified the model, particularly regarding the repeated measures and nested structure. Any guidance would be greatly appreciated.
... View more