Hi guys,
I have several questions regarding the proper use of model for my data. I have panel data with 4 observations per panel-ID. I want to observe what the effect is of the variable 'chosen' on the variable 'r2_rank" additionally I would like to know the effects of 'treatmentgroup' 'discounted' and 'type'.
However, I am not entirely sure what my prefered model would be. I don't know whether I should use pooled OLS, random effects or fixed effects and whether I should include clustered standard errors.
I included the pooled OLS, the random effects, the fixed effects and a hausman test (between RE and FE) below.
This is the code I used:
xtset panelid t
*Pooled OLS
reg r2_rank chosen i.treatment_group discounted type, vce(cluster panelid)
*Random effects with clustered standard errors
xtreg r2_rank chosen i.treatment_group discounted type, re vce(cluster panelid)
*RE and FE and hausman test
xtreg r2_rank chosen i.treatment_group discounted type, fe
estimates store fe
xtreg r2_rank chosen i.treatment_group discounted type, re
estimates store re
hausman fe re
Let me know what you think!
David
Array
Array Array
Related Posts with pooled OLS, random effects or fixed effects
Problem importing SAS formatsI'm trying to import SAS formats for CDC's Youth Risk Behavior Survey. I have the SAS data set file …
The modulus -mod()- function is giving me negative values. Is this a bug?The help for the modulus function, -mod()- reads: mod(x,y) Description: the modulus of x with respe…
Apply numerical IDs for multiple dataHello, I was wondering whether anyone can help me- as I am very new to Stata. I have multiple pati…
Gen variableHi everyone, I have done some research, but couldn't find the answer to the following issue. Dataset…
Fixed Effects regression with clustering - QuestionHello, I'd like to utilize year and industry fixed effects regression and calculate t-statistics us…
Subscribe to:
Post Comments (Atom)
0 Response to pooled OLS, random effects or fixed effects
Post a Comment