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
Margins command: discrete change not from the base levelHi Statalist, I am currently working on a probit model in which the dependant variable is labor for…
Strange convergence properties using xtmlogitHi, I'm having some convergence troubles with xtmlogit (Stata 17). In trying to isolate exactly wha…
Factor Analysis - LR & chi square testHi there, I'm conducting a factor analysis (EFA, factor command, pf default) and have 2 questions: …
How to calculate BMI using height & weightGood afternoon, I was wondering if any of you, STATA experts, could assist me and guide me in how t…
how to perform a multivariate multilevel model with Stata? hello statalist I have a problem I would like to analyze independently the reading and mathematical…
Subscribe to:
Post Comments (Atom)
0 Response to pooled OLS, random effects or fixed effects
Post a Comment