Hi everybody,
I am using first difference and my code is the following:
xtset id year
reg d.y d.x1 d.xc i.year, nocons cluster(id)
My question is what is the difference between i.year and nocons.
When I run my regressions, there is not very big difference when using both or only i.year. The difference arises when I use only nocons, then my coef changes sign. For the reference I am looking how variable x influences elections and my units of observations are counties. As a side question, I would also like to know, should I use weights?
I am using first difference and my code is the following:
xtset id year
reg d.y d.x1 d.xc i.year, nocons cluster(id)
My question is what is the difference between i.year and nocons.
When I run my regressions, there is not very big difference when using both or only i.year. The difference arises when I use only nocons, then my coef changes sign. For the reference I am looking how variable x influences elections and my units of observations are counties. As a side question, I would also like to know, should I use weights?

Comment