Hi everyone!
When we have panel data, we have to take into account that the observations are not independent (that is, we observe the same individual during a different periods of time). When we compute the standars errors we have to take that into account.
From my knowledge, there are three different ways to compute consistently the standard errors in panel data (assuming a Random Effect model with strict exogenaity):
1) Pooled OLS with cluster
2) GLS using the fitted residuals of the OLS to compute the matrix Omega
2) GLS using the specific case of the standard error component model.
To obtain 1), I just do with command reg and option vce with cluster. To obtain 3), with command xtreg is enough because by default the standard errors are calculate in that way.
My question is, how can I compute number 2? is anyway to do it using command xtreg but putting some specification in option vce?
Thank you,
Diego.
Related Posts with Compute standard errors with command xtreg
ICD 10 to ICD-9 mapping using GEMsHi stata users, anybody has any experience in using GEMs files to map backwards from icd10 to ICD10 …
Coefplot: reduce spacing on y-axisHello everybody, I have a question about how to reduce the spacing between labels on the y-axis whe…
Logit Regression Model / Plotting InteractionsHi everyone, I am working at my final paper and need some guidance. I want to look at the party id…
Getting an error from putexcel set ..., openI have this simple line of code to setup my excel worksheet but I get the following error when I try…
Looping over correlation functionI am trying to produce a dataset that includes the autocorrelations of a variable (ret) across group…
Subscribe to:
Post Comments (Atom)
0 Response to Compute standard errors with command xtreg
Post a Comment