Difference between revisions of "R robust se"
(Created page with "Here we briefly discuss how to estimate robust standard errors for linear regression models == Which package to use == There are a number of pieces of code available to faci...") |
|||
Line 3: | Line 3: | ||
== Which package to use == | == Which package to use == | ||
− | There are a number of pieces of code available to facilitate this task. Here I recommend to use the [http://cran.r-project.org/web/packages/sandwich/index.html "sandwich" package] | + | There are a number of pieces of code available to facilitate this task. Here I recommend to use the [http://cran.r-project.org/web/packages/sandwich/index.html "sandwich" package]. Which has the most comprehensive robust standard error options I am aware of. |
== Heteroskedasticity robust standard errors == | == Heteroskedasticity robust standard errors == | ||
+ | I assume that you know that the presence of heteroskedastic standard errors renders OLS estimators of linear regression models inefficient (although they remain unbiased). More seriously, however, they also imply that the usual standard errors that are computed for your coefficient estimates (e.g.) | ||
== Autocorrelation and heteroskedasticity robust standard errors == | == Autocorrelation and heteroskedasticity robust standard errors == |
Revision as of 20:48, 5 April 2015
Here we briefly discuss how to estimate robust standard errors for linear regression models
Contents
Which package to use
There are a number of pieces of code available to facilitate this task. Here I recommend to use the "sandwich" package. Which has the most comprehensive robust standard error options I am aware of.
Heteroskedasticity robust standard errors
I assume that you know that the presence of heteroskedastic standard errors renders OLS estimators of linear regression models inefficient (although they remain unbiased). More seriously, however, they also imply that the usual standard errors that are computed for your coefficient estimates (e.g.)