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
Manual implementation of -xtheckman-Dear all, I would like to implement a version of -heckman- with too many fixed effects than my comp…
-mixed- Unable to achieve convergence of 3-level modelHello! I am studying the association between product quality measured by expert intermediary (overa…
Help with metapropDear all, I am doing a proportion meta-analysis with metaprop module. my data contains few 0 cells t…
Excluding a city when calculating the value for the cityDear Stalist, I would like to as for help with stata code. I would like to calculate a variable Ma…
Suppress part of legend when generating multiple twoway graphsHi all, I'm a long-time reader, first-time poster. Thanks in advance for advice! I would like to s…
Subscribe to:
Post Comments (Atom)
0 Response to pooled OLS, random effects or fixed effects
Post a Comment