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
Convert numeric to string, and vice verse.Dear All, Are there alternative to do the following two cases. Code: // (1) numeric to string * Exa…
28 June, or 6/28: Tau Day 2021https://tauday.com/ http://www.harremoes.dk/Peter/Underv.../Turnpage1.pdf …
Loop results creating random groups are not reproducibleIn my data, each participant has obtained a score (SC1) in a game. I want to know for a participant …
Unbalanced Panel Regression techniqueHello I am new to STATA. I have an unbalanced panel where my data description is represented as: pan…
Can I run GMM (and OLS, 2SLS, IV) with very unbalanced panel of poverty & financial development data (Africa, 2000-2019)?Hello Statalist 1). Can I run a gmm, 2sls, ols estimations using this (partial snapshot shown below…
Subscribe to:
Post Comments (Atom)
0 Response to comparing difference in average marginal effects (AME) between stratified samples
Post a Comment