Hi all
New to this forum. I'm working on a longitudinal mixed model and wanted to ensure the model is specified correctly. Below are the model specifications:
Dependent variable: Severity-of-illness score
Independent variables: Study intervention (treatment vs. placebo) ; Time (0,24, 72 hours) ; study site (14 sites as categorical variables) ; time*intervention interaction term
Outcome of interest: Effect of the intervention on severity-of-illness score over time (i.e. the time*intervention interaction term)
The model is currently specified as:
xtset subject_ID time
mixed score time##intervention i.site||subject_ID, var residuals (ar, t(time))
contrast intervention##time
This then gives a chi2 and p-value for the interaction term
Appreciate any thoughts!
Sam
Related Posts with Help with longitudinal mixed model
Panel data multiple observations per identifierHi Statalisters, I am working with panel data on board members of companies with DirectorID as an i…
Forest plot to present interaction in a cross sectional studyHello, I am trying to use ipdover command and I followed the advices that I found in the website, b…
egen MY_VAR = mean(MY_VAR), by(group)Is there a nice way in Stata to develop a group mean of a variable and keep the original name? (The …
Generating variable based on each ID'sHey, I have the following dataset: ID OfferBy Amount offered (€) 1 Samsung 100 1 Apple 125 …
observation numbers out of range (r198) when attempting to create a loopHello all, I have been using the following code in order to create a variable that gives the averag…
Subscribe to:
Post Comments (Atom)
0 Response to Help with longitudinal mixed model
Post a Comment