Hi everyone:
I am running a multiple regression model with interactions between Female and some Xs and would like to calculate the average effect on Y of Female and test for its statistical significance. My regression model is of the form:
lnY = f(Female, FullTime, YrsSenior, YrsJob, YrsPrior, admin, staff, Femadmin, Femstaff)
where lnY = log Salary and Femadmin and Femstaff are interactions between Female and admin and staff.
The MR results are as follows:
. reg $salary Female $experience staff admin $feminter1, robust
Linear regression Number of obs = 1,442
F(9, 1432) = 323.99
Prob > F = 0.0000
R-squared = 0.6884
Root MSE = .21134
------------------------------------------------------------------------------
| Robust
LogSalary | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
Female | -.1264494 .0207647 -6.09 0.000 -.1671819 -.085717
FullTime | .072019 .0136683 5.27 0.000 .0452069 .098831
YrsSenior | .0157707 .0009773 16.14 0.000 .0138536 .0176877
YrsJob | -.0014718 .0013556 -1.09 0.278 -.0041309 .0011874
YrsPrior | .0032921 .0006148 5.36 0.000 .0020862 .004498
staff | -.5281492 .0212004 -24.91 0.000 -.5697364 -.4865619
admin | .232245 .0416696 5.57 0.000 .1505051 .3139849
femadmin | -.036489 .0556346 -0.66 0.512 -.145623 .072645
femstaff | .0594871 .0252234 2.36 0.018 .0100083 .108966
_cons | 11.0827 .0225681 491.08 0.000 11.03843 11.12697
------------------------------------------------------------------------------
. sum staff admin if Female == 1
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
staff | 886 .5474041 .4980289 0 1
admin | 886 .0665914 .2494539 0 1
What I would like to do is calculate the average log salary pay gap for Females. I can calculate this by hand (i.e., substituting the means for Female for admin and staff) into the derivative from the regression equation:
Avg Effect Female = -0.1264494 - (.036489)*(.0665914) + (.0594871)*(.5474041) = -0.09632
But there has to be an automated way to do this, especially if I have a model with a lot of interaction terms. Copying and pasting reg coefs and means into Excel is a pain.
I would also like to be able to test for whether the average Female effect of -0.09632 is statistically significant. The F-test for interactions will tell me if the interaction coefs are non-zero, but this is not the same as testing whether the average effect is non-zero. Any suggestions would be GREATLY appreciated! Thanks in advance.
Rob Toutkoushian
Professor
University of Georgia
I am running a multiple regression model with interactions between Female and some Xs and would like to calculate the average effect on Y of Female and test for its statistical significance. My regression model is of the form:
lnY = f(Female, FullTime, YrsSenior, YrsJob, YrsPrior, admin, staff, Femadmin, Femstaff)
where lnY = log Salary and Femadmin and Femstaff are interactions between Female and admin and staff.
The MR results are as follows:
. reg $salary Female $experience staff admin $feminter1, robust
Linear regression Number of obs = 1,442
F(9, 1432) = 323.99
Prob > F = 0.0000
R-squared = 0.6884
Root MSE = .21134
------------------------------------------------------------------------------
| Robust
LogSalary | Coefficient std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
Female | -.1264494 .0207647 -6.09 0.000 -.1671819 -.085717
FullTime | .072019 .0136683 5.27 0.000 .0452069 .098831
YrsSenior | .0157707 .0009773 16.14 0.000 .0138536 .0176877
YrsJob | -.0014718 .0013556 -1.09 0.278 -.0041309 .0011874
YrsPrior | .0032921 .0006148 5.36 0.000 .0020862 .004498
staff | -.5281492 .0212004 -24.91 0.000 -.5697364 -.4865619
admin | .232245 .0416696 5.57 0.000 .1505051 .3139849
femadmin | -.036489 .0556346 -0.66 0.512 -.145623 .072645
femstaff | .0594871 .0252234 2.36 0.018 .0100083 .108966
_cons | 11.0827 .0225681 491.08 0.000 11.03843 11.12697
------------------------------------------------------------------------------
. sum staff admin if Female == 1
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
staff | 886 .5474041 .4980289 0 1
admin | 886 .0665914 .2494539 0 1
What I would like to do is calculate the average log salary pay gap for Females. I can calculate this by hand (i.e., substituting the means for Female for admin and staff) into the derivative from the regression equation:
Avg Effect Female = -0.1264494 - (.036489)*(.0665914) + (.0594871)*(.5474041) = -0.09632
But there has to be an automated way to do this, especially if I have a model with a lot of interaction terms. Copying and pasting reg coefs and means into Excel is a pain.
I would also like to be able to test for whether the average Female effect of -0.09632 is statistically significant. The F-test for interactions will tell me if the interaction coefs are non-zero, but this is not the same as testing whether the average effect is non-zero. Any suggestions would be GREATLY appreciated! Thanks in advance.
Rob Toutkoushian
Professor
University of Georgia
Comment