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
esttab with the error " in range not allowed" r(101);The code is as following, Why did this error occur, thanks esttab m s, nogap compress replace /// mt…
Is "no anticipation effect" a must in testing Difference-in-Difference?I am wondering if we "must" test the "no anticipation effect" if the parallel trend assumption is sa…
How to find optimal bandwidth?Hi all, when plotting Code: twoway (lpoly logexptot bin if D==0, degree (1) kernel(epanechnikov))…
inference randomizationHi everyone, I hope you are all doing good. I have to do an inference randomization but I don't real…
Boxplots in STATAHello, I am trying to create a boxplot of categorical variables in stata. I have about 6 to 7 variab…
Subscribe to:
Post Comments (Atom)
0 Response to Fitting Random Slope in Mixed Models
Post a Comment