Dear STATA forum,
I am a first time stata user and am running into a few problems. I already searched this forum for a few hours but could not find answers to my problems (which I assume are quite easy to solve for someone having experience with the software)
1) I am running a panel data analysis on the effects of a fine on R&D expenditure. I have 193 firm observations, and each firm got fined at a different point of time. I always have R&D expenditure 5 years before the fine, and 5 years after the fine.
Firstly, I created a dummy variable, POST_FINE, to differentiate between 0=time before fine, 1=time post fine. I then regress this dummy to R&D expenditure to see if there is a sig diffrence in the two periods
2) I assume I need a fixed effect model to account for the firm differences (which are obviosuly present). I considered running the Hausman test, but this test is not possible when including robust standard errors. So I used the command xtoverid. however, when I use it, the answer is xtoverid is not allowed:
xtreg RD POST_FINE_DUMMY, re xtoverid
option xtoverid not allowed
r(198);
when is just regress xtreg RD POST_FINE_DUMMY, re and then just do the command xtoverid it gives me a result...is that the same?
The Hausman test without robust SE suggested to use a RE model, even though FE is clerly the favourited model here...
2) I also want to see if the level of the fine has an effect, so I made 3 dummy variables, small,medium and large fine (calculated as FINE/average revenue of the time period)
whenever I regress these against R&D expense they get ommited. The same occurs when I just regress FINE against R&D...for both I used fe...when I just use xtreg RD FINE it works...
Is it because fe already accounts for the differences between the firms and given that the fine is always the same in my data for every year for the same firm, there is nothing left compare?
How would I do that in a regression, if I want to see if the level of fine has an effect on R&D?
Thank you in advance,
Best
I am a first time stata user and am running into a few problems. I already searched this forum for a few hours but could not find answers to my problems (which I assume are quite easy to solve for someone having experience with the software)
1) I am running a panel data analysis on the effects of a fine on R&D expenditure. I have 193 firm observations, and each firm got fined at a different point of time. I always have R&D expenditure 5 years before the fine, and 5 years after the fine.
Firstly, I created a dummy variable, POST_FINE, to differentiate between 0=time before fine, 1=time post fine. I then regress this dummy to R&D expenditure to see if there is a sig diffrence in the two periods
2) I assume I need a fixed effect model to account for the firm differences (which are obviosuly present). I considered running the Hausman test, but this test is not possible when including robust standard errors. So I used the command xtoverid. however, when I use it, the answer is xtoverid is not allowed:
xtreg RD POST_FINE_DUMMY, re xtoverid
option xtoverid not allowed
r(198);
when is just regress xtreg RD POST_FINE_DUMMY, re and then just do the command xtoverid it gives me a result...is that the same?
The Hausman test without robust SE suggested to use a RE model, even though FE is clerly the favourited model here...
2) I also want to see if the level of the fine has an effect, so I made 3 dummy variables, small,medium and large fine (calculated as FINE/average revenue of the time period)
whenever I regress these against R&D expense they get ommited. The same occurs when I just regress FINE against R&D...for both I used fe...when I just use xtreg RD FINE it works...
Is it because fe already accounts for the differences between the firms and given that the fine is always the same in my data for every year for the same firm, there is nothing left compare?
How would I do that in a regression, if I want to see if the level of fine has an effect on R&D?
Thank you in advance,
Best
Comment