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
Question CEO Duality applying to whole firm in a yearHello everyone, For my thesis I have to investigate CEO Duality. CEO Duality is when the CEO of the…
Repeated time values within panel error in ESS cumulative fileI'm trying to run a fixed effects panel data analysis with a cumulative file of the European Social …
The rank of the differenced variance matrix does not equal the number of coefficients being testedHi there, I have a panel data and I want to do Hausman Test but it keeps on showing this note: . …
Merging Specific File Names onlyHello Everyone, Hope you all are doing well. I have this somewhat confusing query which I am tryin…
Combine graph plot yearsHi guys, I have 9 variables that I'd like to plot with tsline. The data is monthly and I am not abl…
Subscribe to:
Post Comments (Atom)
0 Response to Standard errors from margins commands
Post a Comment