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"
Counting number of firms and executives from CompustatCRSPExecucomp merged datasetHello good people, I have to work with CompustatCRSPExecucomp merged dataset. I need to count the n…
PPML Estimation Issues: regressors and negative predictedHi All, I'm running a PPML regression on bilateral export pairs, using the OECD TiVA dataset (2018 …
Meta-analysis of RCTsDear all, I had a basic question pertaining to meta-analysis of RCTs. If we have ATEs and CIs of th…
How to use loops to establish the following combinationsHi every one, Is there anybody know how to establish the following combination by the loops? Each c…
running regression separately for sub samples vs joint interaction termsHello everyone, I have a panel data set which comprises of 25 countries and 2000 banks. In order to…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction terms giving error "factor variables may not contain noninteger values"
Post a Comment