Hi. I have data on 600 participants at 5 time points with 2 measurements at each time point for average (some missing data). I want to look at the change in nutrient intakes over the 5 time points. I have the data in long format. I want to include a random effect at the participant level, but I'm unsure how to do this using the mixed command - do I use participant ID in the random effect equation? Any help much appreciated.
Related Posts with Mixed command and random effects
Double fixed effects Yes/No with estoutI need to declare two fixed effects at bottom of regression table, but second fixed effect (Time FE)…
Calculating residuals in a multinomial regression as part of 2SRII am attempting to do a 2 stage residual inclusion (2SRI) model where the first stage is estimating …
reshapeHi everyone, I have a long dataset and used this code to reshape it to wide format: Code: ds hhidpn…
Randomly Assigning TreatmentI have person-year level data, and I am utilizing DiD that exploits state-level shocks. Each person …
Problems with local macros in finding an excel fileHello Statalisters, I've being working all day in a code and i couldn't make it work. Because i'm re…
Subscribe to:
Post Comments (Atom)
0 Response to Mixed command and random effects
Post a Comment