Hi,
Please, I wanted to know the appropriateness of deriving marginal effects from a multilevel model. I ran conditional and adjusted marginal effects after multilevel models to derive my predicted probabilities for the first and second differences of my average marginal effects and my marginsplot. I was guide by Mize's (2019) paper and analysis on average marginal effects for my analyses. However, one of my Professor wanted me to ask if the average marginal effects I generated applies or recognizes the error structure of the mixed models, which has two levels in my case, for its analyses. I felt that it does but I am not 100% sure. My Professor feels that the marginal effects analyses I conducted does not recognize the two-level error structure of my data. He feels that the margins effects are only based on the individual level data. My commands are:
meglm protest1 c.female##c.demcons employed urban age edu p_interest volun_act volun_inact log_gdp [pw=wght1] || country:female, family(bernoulli) link(logit)
margins, at (demcons=(1(10)41 47) female=(-0.5 0.5)) post
qui mlincom 2-1, add rowname(Males: 1 to 11 yrs) stat(est se p)
qui mlincom 3-1, add rowname(Males: 1 to 21 yrs) stat(est se p)
qui mlincom 4-1, add rowname(Males: 1 to 31 yrs) stat(est se p)
qui mlincom 5-1, add rowname(Males: 1 to 41 yrs) stat(est se p)
mlincom 6-1, add rowname(Males: 1 to 47 yrs) stat(est se p)
qui mlincom 8-7, add rowname(Females: 1 to 11 yrs) stat(est se p)
qui mlincom 9-7, add rowname(Females: 1 to 21 yrs) stat(est se p)
qui mlincom 10-7, add rowname(Females: 1 to 31 yrs) stat(est se p)
qui mlincom 11-7, add rowname(Females: 1 to 41 yrs) stat(est se p)
mlincom 12-7, add rowname(Females: 1 to 47 yrs) stat(est se p)
qui mlincom (8-7) - (2-1), add rowname(Difference: 1 to 11 yrs) stat(est se p)
qui mlincom (9-7) - (3-1), add rowname(Difference: 1 to 21 yrs) stat(est se p)
qui mlincom (10-7) - (4-1), add rowname(Difference: 1 to 31 yrs) stat(est se p)
qui mlincom (11-7) - (5-1), add rowname(Difference: 1 to 41 yrs) stat(est se p)
mlincom (12-7) - (6-1), add rowname(Difference: 1 to 47 yrs) stat(est se p)
Thus, please, do you think the margins effects commands I have in my command recognizes or applies the two-level error structure of the multilevel model?
Thank you and looking forward to your reply.
Eugene Emeka Dim.
Related Posts with Average Marginal effects for a multilevel model
Instrumented diff-in-diff with ivreg2Dear Statalist, I am struggling with an endogenous treatment in a diff-in-diff model I am using (at…
Finding Beta's from different periods in timeHi, I am trying to find beta's for different stocks at in different time periods (when they were no…
[Panel] Preceding observations with values lower than that of the current observationHi, I am using panel data with the following structure: a single task (Task_id, also the panel id) …
Problem with PCAHi all! My research is on the impact of immunization coverage on child mortality in India. There is …
Drop variables in STATA if next year data is missingHello, I need some help I have large unbalance panel data and I need to drop the Person ID (PID) if…
Subscribe to:
Post Comments (Atom)
0 Response to Average Marginal effects for a multilevel model
Post a Comment