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
How to test the interactional effects with the -xtdpdml- commandI am using the -xtdpdml- to test the interactional effect of gender (time-invariant variable) and mo…
How to calculate the annualized three-month rolling sample standard deviation (based on the actual trading days)?Dear stata users, I' m following the Campbell et al.(2008) to calculate the failure probability of …
Estimate logit models with SUR and fixed effects included?Dear Stata enthusiasts, Is there any command that can be used to estimate two or more logit models …
Analyst Forecast DispersionHi All I am a beginner with Stata and am working with analyst data downloaded from IBES. I am using…
presentation of very small coefficients but statistically significant Good morning all. the coefficients of my econometric results are very small but statistically signi…
Subscribe to:
Post Comments (Atom)
0 Response to Multilevel model (mixed command) with clustered, repeated-measures data
Post a Comment