I am trying to fit a three-level mixed-effects model: the client is nested within the therapist (clients may receive similar treatment and results from the same therapist), and there are repeated measures within the client (assuming there are correlations between measurement occasions with the same client).
The STATA command I used is: mixed IV DV || therapist: || client: time,ml
However, the client variable is not independent; 1/3 of the clients have their partner or family members in the same dataset. There is another variable called “case” that indicates the identifier of the family unit. I want to add a cluster variable using VCE (cluster CLUSTER Variable) at the client level.
The STATA command I used is: mixed IV DV|| therapist: || client: time, vce(cluster case)
Then I got this error message “highest-level groups are not nested within case”. While I understand case is indeed not nested within therapist, I wonder how I can count the nesting effect of case for these 1/3 clients while still using a three-level mixed model. Any suggestions? Thank you!
The STATA command I used is: mixed IV DV || therapist: || client: time,ml
However, the client variable is not independent; 1/3 of the clients have their partner or family members in the same dataset. There is another variable called “case” that indicates the identifier of the family unit. I want to add a cluster variable using VCE (cluster CLUSTER Variable) at the client level.
The STATA command I used is: mixed IV DV|| therapist: || client: time, vce(cluster case)
Then I got this error message “highest-level groups are not nested within case”. While I understand case is indeed not nested within therapist, I wonder how I can count the nesting effect of case for these 1/3 clients while still using a three-level mixed model. Any suggestions? Thank you!
Comment