Hello All, I have seen pieces of this question answered before but could not be certain. Thanks in advance.
I am running a fixed effects model to test how the presence/absence of a housing institution (lagged) reduces cases of waterborne illness (through access to clean water). My theory suggests this institution will work in cities with higher civil society density. I am uncertain about how to calculate the full affect from the interaction and have gotten some contradictory advice. I want to test whether dichotomous, lagged adoption (l.houseyearm) has a greater effect in cities with higher civil society density (csoresid), which is time-invariant, standardized and centered on zero.
Here is my code:
A little about my data: I have 8 years and 851 cities per year.
Here is my output for the interactions
My interpretation:
L.houseyearm is the effect of adoption when csoresid=0 (its mean value)
csoresid is an increase in one standard deviation of csoresid when l.houseyearm=0
L.houseyearm#c.csoresid is an increase in one standard deviation of csoresid when l.houseyearm=1
What I am uncertain about is how to calculate the full effect of interest: the effect of adoption at high and very high levels of civil society density among adopters, because I read that margins will not work with fixed effects. Here are two efforts with lincom for high and very high csoresid, respectively.
Do either of these sets provide the correct interpretation of the effect of adopting at different levels of civil society density among adopters? Or something else? Am I incorrect that margins will not provide the correct values with fixed effects? Thanks in advance!
I am running a fixed effects model to test how the presence/absence of a housing institution (lagged) reduces cases of waterborne illness (through access to clean water). My theory suggests this institution will work in cities with higher civil society density. I am uncertain about how to calculate the full affect from the interaction and have gotten some contradictory advice. I want to test whether dichotomous, lagged adoption (l.houseyearm) has a greater effect in cities with higher civil society density (csoresid), which is time-invariant, standardized and centered on zero.
Here is my code:
Code:
xtpoisson waterill l.houseyearm##c.csoresid $controls i.year, fe vce(robust) irr
Here is my output for the interactions
Code:
waterill | IRR Std. Err. z P>|z| [95% Conf. Interval] -----------------+---------------------------------------------------------------- L.houseyearm | Adoption at t-1 | .9839947 .0349816 -0.45 0.650 .9177662 1.055002 | csoresid | 1.229935 .2441128 1.04 0.297 .833564 1.814786 | L.houseyearm#| c.csoresid | Adoption at t-1 | .9554095 .0160163 -2.72 0.007 .9245282 .9873223
L.houseyearm is the effect of adoption when csoresid=0 (its mean value)
csoresid is an increase in one standard deviation of csoresid when l.houseyearm=0
L.houseyearm#c.csoresid is an increase in one standard deviation of csoresid when l.houseyearm=1
What I am uncertain about is how to calculate the full effect of interest: the effect of adoption at high and very high levels of civil society density among adopters, because I read that margins will not work with fixed effects. Here are two efforts with lincom for high and very high csoresid, respectively.
Code:
lincom 1.l.houseyearm + 1*c.csoresid#1.l.houseyearm, irr waterill IRR Std. Err. z P>z [95% Conf. Interval] (1) .9401178 .0330092 -1.76 0.079 .877597 1.007093 lincom 1.l.houseyearm + 2*c.csoresid#1.l.houseyearm, irr waterill IRR Std. Err. z P>z [95% Conf. Interval] (1) .8981975 .0377229 2.56 0.011 .8272231 .9752613
Code:
lincom 0*c.csoresid#1.l.houseyearm + 1*c.csoresid#1.l.houseyearm, irr waterill IRR Std. Err. z P>z [95% Conf. Interval] (1) .9554095 .0160163 2.72 0.007 .9245282 .9873223 lincom 0*c.csoresid#1.l.houseyearm + 2*c.csoresid#1.l.houseyearm, irr waterill IRR Std. Err. z P>z [95% Conf. Interval] (1) .9128072 .0306043 2.72 0.007 .8547523 .9748053
Comment