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
How to Run Random Forest for Time-Series DataHi, I am writing this post to ask whether there is any Stata command (or doing manually) to apply t…
Finding and plotting the trend of the weighted average of variable Code: * Example generated by -dataex-. To install: ssc install dataex clear input double total_asse…
Main effect in logistic regression with interactionHello, I have a logistic regression model with interaction term (variable##sex). Variable is catego…
Remove part of a Text in observationHi guys, Below is a sample of my data. I would like to remove the "-TOT RETURN IND" in all the obser…
Merge mulitple .csv filesI am using Stata 16.1 MP to merge six .csv files on neonatal, infant, and child mortality. I would l…
Subscribe to:
Post Comments (Atom)
0 Response to Mixed effects (multilevel) model vs. cluster command
Post a Comment