Hi all
I want to test the association between childhood behaviour at age 6 years and earnings at age 36 (n=1000). The behavioural assessments were obtained from teachers when the children were aged 6. I want to control for clustering in the behavioural assessments at the school and classroom levels, although I’m not testing predictors at those levels. From what I understand, the mixed model is better although I would only report the fixed effects estimates, not the random effects, which seems amounts to a regular regression (with adjusted SE estimates). What are the pros and cons of using a mixed effects model vs. the cluster command? The advantage of the cluster command is simplicity and that I can still report standardised betas. Any suggestions welcome. See examples below – they produce similar results.
Many thanks
mixed OUTCOME behav1 behav2 etc || school: || Class:, vce(robust)
egen double_cluster=group (school class)
regress OUTCOME behav1 behav2 etc, vce(cluster double_cluster) robust
Related Posts with Mixed effects (multilevel) model vs. cluster command
Hacky workaround for prtest and pwcorr following MI - are these equivalent?I am helping a student with an analysis of a dataset with a fair bit of missing data and am explorin…
Inconsistent Behavior Between Mata Functions and Identical Class Methods Toward Object TypesThis is occasioned by a thread begun by Alfonso Sánchez-Peñalver here. It’s been a while since I’ve…
Importer-year and exporter-year fixed effects issues in gravity equation modelGood morning Statalist community, I am studying the determinants of asset trade flows across 40ish …
Change of bootstrapping module/algorithm for Stata ver16?Dear Statalisters, I hope you have all been healthy and well. I have a question that may require th…
How to use percentile data and raw data?Hi everyone I have a question for you? The model I use has both percentage variables and raw data. A…
Subscribe to:
Post Comments (Atom)
0 Response to Mixed effects (multilevel) model vs. cluster command
Post a Comment