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
Error using spgenerateHello Statalisters, I am trying to create spatial lag variable manually using spgenerate command. I…
Making a Balanced Panel Dataset in Stata 16 from (Almost) ScratchHello, I'm a long-time lurker and first time poster. I have a dataset in Stata with units (say, sta…
duplicate article resultsHi, I am trying to duplicate table 2 using the researchers' do and ado files. for some reason I kee…
Coarsened Exact Matching with Parallel does not work properlyDear Statalisters, I use CEM with Parallel with the following command Code: parallel setclusters 4…
Advice on Panel Data usage (tests to be performed)Dear all, I will start the methodology part of my master thesis soon and would like to get your adv…
Subscribe to:
Post Comments (Atom)
0 Response to Average Marginal effects for a multilevel model
Post a Comment