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
Help meHELP!!! Hi, I want to create a dummy from the second dummy variable which is 1 or 2 in case the cod…
Evaluating whether a vector of strings is in a dfIf I want to see whether a string is in a column at the most simplest, I can do something like: Exa…
using 'if' command vs interaction termshi all im running some regressions and want to examine the difference between high income areas an…
itsa outputGood evening, I am running a time series analysis with multiple groups using ITSA. The initial data…
xtpoisson with exposure(varname): how to select the appropriate varname?I'm working on a paper with count data and am using a panel Poisson regression model (xtpoisson). I…
Subscribe to:
Post Comments (Atom)
0 Response to pooled OLS, random effects or fixed effects
Post a Comment