Hi,
I have data of rainfall for each state and year, and I am explaining it based on the size of the state (just an example). I am running
water_(state,year) = constant + \beta * size + error
I want to introduce year fixed effects, in which case I type
reg water size i.year
The previous line works fine. However, when I want to interact the variable size with the year fixed effects, typing:
reg water size i.year size#i.year
I get the following error:
factor variables may not contain noninteger values
Is there an easy way to get rid of the error, or should I just multiply the variable size with each dummy for each year?
Related Posts with Interaction terms giving error "factor variables may not contain noninteger values"
xtabond2: two way clustering-dynamic panelHello all. For my master thesis I am trying analyse what are the determinants of Non Performing Loan…
Using esttab to report results for Lagged VariablesHi All, My dataset resembles the following (I have panel data, so multiple observations for the sam…
How to merge different Excel File.Hello Sir, I have 4 separate -excel files required to merge in one excel file. This is the longitud…
Understanding Abadie, Athey, Imbens, and Wooldridge (2017) using a long-difference exampleThere are 100 counties j. There are many people in each county. People do not move across counties f…
Autocorrelation (ac and pac)I'm using the autocorrelation command ac and the partial autocorrelation command pac. I'm running th…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction terms giving error "factor variables may not contain noninteger values"
Post a Comment