these are different models. The one with c.year##i.state incorporates a linear time trend in each state. That is, within each state, there is a continuous drift over time in the expected value of y, whereby it increases (or decreases, as the case may be) by a constant amount per year. That rate of increase or decrease differs from one state to the next.
In the model with i.year##i.state, the model incorporates an idiosyncratic shock to the expected value of y in each year. It might go up one year, down the next, then up again for 2 years, then down for 5 years, then up for 3, etc. The shocks are independent from one year to the next. And, in this model, they differ from one state to the next.
Neither model, strictly speaking, incorporates time fixed effects. The c.year##i.state model has nothing even remotely like a time fixed effect. For the i.year##i.state model you could, if you like, think of the shocks as being time fixed effects, but because they differ across states they are not truly that. A true time fixed effect, though it has the arbitrary shock character, is by definition the same in all states.
It is not surprising that results differ in these two models. They are very different models. The one with linear trends is based on very strong assumptions about the trajectory of y in time, whereas the one with shocks is compatible with arbitrary movement of y over time. If you fit a "shock" model to a situation where there is, in fact, a linear trend, the shocks themselves will show linear growth in the year coefficients from onoe year to the next. So you can think of the linear trend model as a very special case of the shock model, one that arises under very special constraints. That said, when the real situation involves linear growth, the linear growth model is a much more efficient way of capturing that effect in the model.
If, on the other hand, you fit a linear trend model to a situation where the real situation is shocks, the linear trend coefficient will be zero or very close to zero, and the effects of the time shocks will be absorbed into the residual noise term of the model, making all of your other coefficient estimates less precise than they could be. That is the best case scenario for this model-reality mismatch. A worse outcome can also occur: if the treatment effect actually varies over time, the failure to capture the time effects can result in those effects being absorbed into the treatment effect estimate, which can result in a biased estimate of treatment effect. The bias can be in either direction.
So you should choose between the models, if at all possible, based on a strong theoretical understanding of the time dynamics of your outcome y. When that is not possible, the linear trend model being a highly constrained version of the shocks model, it is possible to compare the models using the Bayes or Akaike information criteria (BIC, AIC). Both of those will credit the model that gives a better fit, but will also penalize the shock model for requiring a larger number of degrees of freedom to do so.
I don't know what you mean by "better." In any case, it is unscientific at best, and scientific misconduct at worst, to select a model based on the results being closer to your preferences.
In the model with i.year##i.state, the model incorporates an idiosyncratic shock to the expected value of y in each year. It might go up one year, down the next, then up again for 2 years, then down for 5 years, then up for 3, etc. The shocks are independent from one year to the next. And, in this model, they differ from one state to the next.
Neither model, strictly speaking, incorporates time fixed effects. The c.year##i.state model has nothing even remotely like a time fixed effect. For the i.year##i.state model you could, if you like, think of the shocks as being time fixed effects, but because they differ across states they are not truly that. A true time fixed effect, though it has the arbitrary shock character, is by definition the same in all states.
It is not surprising that results differ in these two models. They are very different models. The one with linear trends is based on very strong assumptions about the trajectory of y in time, whereas the one with shocks is compatible with arbitrary movement of y over time. If you fit a "shock" model to a situation where there is, in fact, a linear trend, the shocks themselves will show linear growth in the year coefficients from onoe year to the next. So you can think of the linear trend model as a very special case of the shock model, one that arises under very special constraints. That said, when the real situation involves linear growth, the linear growth model is a much more efficient way of capturing that effect in the model.
If, on the other hand, you fit a linear trend model to a situation where the real situation is shocks, the linear trend coefficient will be zero or very close to zero, and the effects of the time shocks will be absorbed into the residual noise term of the model, making all of your other coefficient estimates less precise than they could be. That is the best case scenario for this model-reality mismatch. A worse outcome can also occur: if the treatment effect actually varies over time, the failure to capture the time effects can result in those effects being absorbed into the treatment effect estimate, which can result in a biased estimate of treatment effect. The bias can be in either direction.
So you should choose between the models, if at all possible, based on a strong theoretical understanding of the time dynamics of your outcome y. When that is not possible, the linear trend model being a highly constrained version of the shocks model, it is possible to compare the models using the Bayes or Akaike information criteria (BIC, AIC). Both of those will credit the model that gives a better fit, but will also penalize the shock model for requiring a larger number of degrees of freedom to do so.
Also when I use c.year##i.state my results are much better. What can be the reason I can look for?
Comment