Dear Stata experts,
I'm trying to fit a random slope model for longitudinal dataset. My dependent variable is continous variable and my independent variable was continous but I've converted into tertiles. I need a random slope for each tertile. Also, I've a time variable to adjust for which is continous as well. When I prefix R for the Y variable in random slope part, it doesn't run appropriately. Can you pleaes guide on how to get a slope for each tertiles? Also, I need to add in interaction between time and Y varible (tertile).
Thank you!
Here's my code: [mixed X i.Y time || ptid: R.Y]
Related Posts with Random slopes for categorical variable (3 groups)
reverse the first difference value of ARIMAHi guys, I'm an economics newbie, while running the ARIMA analysis, I have a problem about how to re…
Accounting for imperfect diagnostic test results on data from an entire populationHello, I have data from a seroprevalence study which collected samples from an entire population (a…
Multiple twoway lines in same graph region.Dear All, I have a 50 US state panel by day. A policy of interest is implemented in the different s…
New Stata module to estimate permanent-transitory state space modelscdecompose: Stata module to estimate permanent-transitory state space models is now available in SSC…
Marginal effects with a heteroskedastic tobitDear all, I am struggling to compute the average marginal effects using a Tobit allowing for hetero…
Subscribe to:
Post Comments (Atom)
0 Response to Random slopes for categorical variable (3 groups)
Post a Comment