Greetings Experts,
I use stata version 15.0. I have longitudinal data that I am trying to fit some mixed models. My outcome is distance (facial distance), below shown as dist, and my independent is age. I also have ID and each participant is measured at 4 time points (repeated measures). I would like to confirm with experts here whether my commands, under different conditions, are correct (My main interest is on command #3 fitting random slope only assuming fixed intercept- though not a common scenario):
1. *Random intercept unconditional model
mixed dist || ID:, var ml
2. *Random intercept only
mixed dist age || ID:, var ml
3. *Random slope only
mixed dist age ||age:, var ml
4. *Both Random intercept & random slope
mixed dist age || ID:age, var ml
Your comments will be greatly appreciated.
Owen
Related Posts with Fitting Random Slope in Mixed Models
Reshaping Datastream DataHello community. first of all I would like to thank you for the inclusion in this really instructive…
How to run a Mantel-Haenszel for 2*j tableDear Users, I am looking at the impact of 4 different treatments on recovery (yes/no) using data fr…
Automating web downloads when 0 is included, an issue with forvalueThe blog post on the Stata Blog has helped me a lot in creating a loop to download folders at once (…
Piecewise multilevel modellingHi All, I am trying to do piecewise multilevel modelling for a continuous outcome (say pain score) a…
Quantile regressionHi !! What is the procedure of controlling control variables in Quantile regression ? …
Subscribe to:
Post Comments (Atom)
0 Response to Fitting Random Slope in Mixed Models
Post a Comment