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
-atmeans- option with marginsMy question is about best practices while computing marginal effects. When should the option -atmean…
Flipping tables using eststo.Hi, I have a question concerning the construction of tables using eststo and esttab and posting them…
Mixed model interaction command reports error in Mac version of stataHi, this is my first time posting. I have been using stata for sometime now and had no problem in ru…
generating a new variable that is the result of extracting individual data points from a datasetHello I have data for historical breast cancer mortality rates for countries and I'd like to extract…
how to run a quantile regression for estimating panel data models using instrumental variable?Hi I am working on an economic problem using the quantile regression model of panel data. I need to …
Subscribe to:
Post Comments (Atom)
0 Response to Multilevel model (mixed command) with clustered, repeated-measures data
Post a Comment