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
tabulate two variables?Dear All, How can I tabulate the following two variables altogether (horizontally). Code: . tabulat…
Loop stops at the second value of listI'm working on a loop to unzip many zipfiles which have in common title two values: 603 and 634. Hen…
Foreach loop across variablesHi, I have over a thousand dummy variables for 30,000 data entries. I want to find a way to count th…
Histograms and step function graphs in one figureHi I am using Stata 15. My data is a panel data set for 300 districts from 1980 to 2015. I have thre…
[Help] Appending Using LoopingHello Stata wizards I am trying to append around ~35 excel files into 1 dta files. Luckily all the …
Subscribe to:
Post Comments (Atom)
0 Response to Fitting Random Slope in Mixed Models
Post a Comment