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
njc_stuff package updated on SSCThanks as ever to Kit Baum, this package has been updated on SSC. The following explanation is iden…
coefplot : groups() option not producing desired resultsHi Stata users, I am using coefplot in Stata 15 to try and replicate the graph below where there are…
problem with gsemHi all, I am quite new to Stata and I am trying to run a Bernoulli-logit regression with gsem builde…
SIR models in StataDear all, I have to estimate the equations of a SIR model to project the spread of an infectious di…
Dropping variables based on date availabilityHello, I am struggling with cleaning my data. Array I have panel data regarding banks. I would li…
Subscribe to:
Post Comments (Atom)
0 Response to Compute standard errors with command xtreg
Post a Comment