Hi,
I am wondering if someone can help me, as have been having some issues with plotting a figure to match the results from a post estimation margins command.
I have the following model:
regress y i.sex##c.age, vce(cluster studyid)
I am accounting for the fact that results are from 17 different studies (study id).
From this model, I obtain a significant interaction effect.
I then want to look at the outcome (y) at all levels of age, as therefore run:
margins sex, at(xcage=(7(1)18)), vce(unconditional)
(which also adjust the SE for the 17 clusters)
I then obtain a table with margins and SE that I would like to plot with:
marginsplot, horizontal recast(scatter) xline(119, lcolor(red))
However, the CIs for each age (by sex) overlap significantly (i.e. I was expecting sex differences at each age as I ran):
margins, dydx(sex) at(xcage=(7(1)18)) vce(unconditional)
...which shows most male/female differences are significant at the <0.001 level.
Therefore, my question is, why do the adjusted means (or the unconditional dy/dx / standard errors) do not match up to the marginal effects command?
Thank you in advance,
Lucy
Related Posts with Standard errors from margins commands
Error message on assigning different methods of obtaining start values for latent class analysisHi all, I am running a 3-class latent class model on 17 categorical indicators and keep getting err…
Adding controls, insignificant treatment var turns significantDear friends, I am running a Fixed Effects regression to test the effect of a policy on firms' pate…
marginal effect of latent class logit modelI am trying to obtain the marginal effect of the membership variable in latent class logit model Arr…
Propensity score matchingHi all, I am currently trying to run PSM on STATA14 to compare effect of treatment 1 vs treatment 2…
Understanding Stata's default yscale() choiceHi everyone, I am trying to find out how Stata chooses the exact default range of the y-axis. The a…
Subscribe to:
Post Comments (Atom)
0 Response to Standard errors from margins commands
Post a Comment