Hello Statalist,
I am building a multilevel model to test whether an environmental exposure is linked with individual's weight/change in weight over time.
My dataset comprises 3000 individuals nested within 120 community clusters (clusterid) who were measured at five time points (time). The outcome variable is weight. I need to control for two fixed covariates measured at the individual level (inc and mat_ill). The independent variable of interest is measured at the cluster level (env_exp), and I also need to include two fixed cluster-level covariates (alloc and dens).
Is the following code correct for measuring the effects of env_exp and its interaction with time on weight?
mixed weight inc mat_ill alloc dens env_exp time env_exp#time || clusterid: time
Many thanks!
Related Posts with Multilevel model (mixed command) with clustered, repeated-measures data
Logic for using matched sample versus unmatched sampleHi all, I am stuck on a problem of when to use a matched versus unmatched sample. I have a list of …
cross classified multilevel structureDear Stata Forum, I am using mixed estimating a cross-classified multilevel model with three levels…
GMM estimation inside a do loop with foreachDear Friends, I am trying to use GMM to estimate a model that is nonlinear in its parameters. The …
Idiosyncratic Volatility - Rolling WindowHello everyone! I am trying to compute idiosyncratic volatility on a rolling basis of 24 months wit…
no observations error event studyDear Stata community, I'm trying to run a loop to generate the normal returns for my event study, h…
Subscribe to:
Post Comments (Atom)
0 Response to Multilevel model (mixed command) with clustered, repeated-measures data
Post a Comment