Hi All,
I am struggeling with putting together the correct equation for my model (see below). The study design: Outcome Variable is weimus (measuring the fatigue in patients with multiple sclerosis), subjects/patients (IDs) were randomized into two groups (intervention-and controll group) , we measured the outcome at four different timepoints (baseline, after 3 weeks, 3 months, 6 months) in each subject. I am using the mixed command to analyse the repeated measures data (change over time, change between groups and interaction between group * time). The within-subject covariance structure was not compound symmetric, which was one reasons to analyse the data with the mixed model instead of a repeated measures ANOVA.
Syntax:
mixed weimus group##time || id:, var noconst residuals(unstr, t(time)) reml
I checked the Stata Manual in order to find the correct equation for the model, but did not find out how to account for the unstructured residual-error covariance matrix.
What I thought of so far is:
WEIMuSij = β0 + β1 groupij + β2 timeij + β3 group x timeij + uj + Eij for i = t0, t1, t2, t3 and j = 1,...,64 IDs (patients/subjects)
Best regards,
Sarah
I am struggeling with putting together the correct equation for my model (see below). The study design: Outcome Variable is weimus (measuring the fatigue in patients with multiple sclerosis), subjects/patients (IDs) were randomized into two groups (intervention-and controll group) , we measured the outcome at four different timepoints (baseline, after 3 weeks, 3 months, 6 months) in each subject. I am using the mixed command to analyse the repeated measures data (change over time, change between groups and interaction between group * time). The within-subject covariance structure was not compound symmetric, which was one reasons to analyse the data with the mixed model instead of a repeated measures ANOVA.
Syntax:
mixed weimus group##time || id:, var noconst residuals(unstr, t(time)) reml
I checked the Stata Manual in order to find the correct equation for the model, but did not find out how to account for the unstructured residual-error covariance matrix.
What I thought of so far is:
WEIMuSij = β0 + β1 groupij + β2 timeij + β3 group x timeij + uj + Eij for i = t0, t1, t2, t3 and j = 1,...,64 IDs (patients/subjects)
- Would this equation be correct? (How) can I include the fitted residual-error structure?
- Is it correct to say that I am using a mixed model or would it be more correct to say that it is a random intercept model?
- What assumptions must be fullfilled?
Best regards,
Sarah
Comment