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
confidence intervals on proportionHi there Apologies in advance if this has already been answered elsewhere. I have a dataset of many …
Second legend StataI have a coefficient plot of the following form: Code: sysuse auto eststo reg_1: reg price mpg ests…
Fractional response model with balanced panel data and binary endogenous and instrumental-variable.Dear All, I am using balanced panel for the model where the dependent variable is a fraction. Both e…
Help with my work!Hi everyone, I have some work I am really struggling with, I am only able to complete 1a) and the re…
Maybe the dumbest question everHello, I'm new to Stata. I have hunted around and can't seem to find a simple answer to what I'm sur…
Subscribe to:
Post Comments (Atom)
0 Response to Standard errors from margins commands
Post a Comment