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
Rolling regression for calculating expected inflation rate.Dear all, Suppose I have the following dataset: clear input int year double(inf gdp) 1990 5.724589…
Tobit marginal effectsDear Stata users, I estimate a Tobit model (by Stata 14), and then compute marginal effects (dE(y|x)…
Resample dataHi everyone, I hope someone can help me with this question. I have a dataset includes 1000 observati…
creating a count column for unique observations for given study subjectsHello, I am trying to figure out a code that would allow me create a column that counts the number …
Importing .GRD data into StataDear all I have a simple question but cannot seem to get it to work. I have downloaded gridded tem…
Subscribe to:
Post Comments (Atom)
0 Response to Help with longitudinal mixed model
Post a Comment