I have to disagree, whatever the common practice may be.
If x is time-invariant within panels, then x is, in fact, an indicator for a subset of the panels. As such that x is colinear with the fixed-effects. That is why 1.x gets dropped. But it also means that -margins- cannot identify the effect of x vs the effects of the fixed effects in the model--it is mathematically unidentifiable due to the colinearity. It is really just the analog on the panel dimension of the fact that you cannot include a pre-post variable along with time fixed effects in the model if all of the panels that are treated get treated at the same time. In that case the pre-post variable becomes an indicator for a subset of the time fixed effects, and it, too, is colinear with them. And it is then impossible to distinguish an effect of pre-post from the time fixed effects themselves; and -margins- appropriately refuses to do so.
This is really important. It is tempting in your situation to just use -lincom- to calculate the marginal effects of x in each time period here. And -lincom- will not hesitate to give you answers. But those answers are meaningless. In this situation, x constant over time within panels, the effect of x is truly, mathematically, unidentifiable in the context of panel fixed effects. If you force Stata to change the base category for the panel fixed effects and do it over, you will get different answers. That is how the colinearity rears its ugly head in this calculation. If you have seen papers published purporting to provide this kind of estimate, it just means that people have unwittingly published meaningless results--this happens all the time, even in top journals.
If x is time-invariant within panels, then x is, in fact, an indicator for a subset of the panels. As such that x is colinear with the fixed-effects. That is why 1.x gets dropped. But it also means that -margins- cannot identify the effect of x vs the effects of the fixed effects in the model--it is mathematically unidentifiable due to the colinearity. It is really just the analog on the panel dimension of the fact that you cannot include a pre-post variable along with time fixed effects in the model if all of the panels that are treated get treated at the same time. In that case the pre-post variable becomes an indicator for a subset of the time fixed effects, and it, too, is colinear with them. And it is then impossible to distinguish an effect of pre-post from the time fixed effects themselves; and -margins- appropriately refuses to do so.
This is really important. It is tempting in your situation to just use -lincom- to calculate the marginal effects of x in each time period here. And -lincom- will not hesitate to give you answers. But those answers are meaningless. In this situation, x constant over time within panels, the effect of x is truly, mathematically, unidentifiable in the context of panel fixed effects. If you force Stata to change the base category for the panel fixed effects and do it over, you will get different answers. That is how the colinearity rears its ugly head in this calculation. If you have seen papers published purporting to provide this kind of estimate, it just means that people have unwittingly published meaningless results--this happens all the time, even in top journals.
Comment