Hi Statalists,
I was wondering how to conduct a significance test to compare the difference in average marginal effects (AME) between two stratified samples. An example is as follows:
logit y i.x1 i.x2 if gender==1
margins,dydx(x1) asobserved vsquish
Average marginal effects Number of obs = 3,112
------------------------------------------------------------------------------
| Delta-method
| dy/dx Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
x1 |
1 yes | .0743023 .0155001 4.79 0.000 .0439226 .1046819
------------------------------------------------------------------------------
logit y i.x1 i.x2 if gender==2
margins,dydx(x1) asobserved vsquish
Average marginal effects Number of obs = 4,347
------------------------------------------------------------------------------
| Delta-method
| dy/dx Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
x1 |
1 yes | .0860667 .0147079 5.85 0.000 .0572398 .1148937
------------------------------------------------------------------------------
I wanted to test whether the AME of X1 for men (.0743023) and women (.0860667) are significantly different. How can I do this in STATA?
Thank you.
Related Posts with comparing difference in average marginal effects (AME) between stratified samples
Interpretation of Random effect in multi level negative binomial model.Dear Listers,
I would like to know how to interpret the random effect of multi-level negative binom…
xtlogit vce(cluster cvar) returning no standard errorsHello everyone,
I have a panel dataset. The dependent variable is information on whether an investm…
Bootstrapped Maximum likelihood estimationDear Statalist users,
I am trying to write a code in order to estimate a linear regression with boo…
Gmm Estimator in panel data simultaneous EquationHello
In Stata software version 15 , if I want to check and see the result of individuals in GMM Est…
What is wrong with my bootstrap program, and why does it give the same estimates in every bootstrap sample?Lets say that I am trying to compare -reg3- estimates over two different subsamples, using bootstrap…
Subscribe to:
Post Comments (Atom)
0 Response to comparing difference in average marginal effects (AME) between stratified samples
Post a Comment