Are the standard errors right when the residuals scatter unequally? (robust standard errors, HC3, heteroskedasticity)
In brief
The usual regression assumes that the residuals (the deviations of the points from the line) scatter equally strongly everywhere. If they scatter more at large values than at small ones (heteroskedasticity), the standard errors, p values and intervals are no longer right. Robust standard errors (HC3) stay usable even then. The coefficients themselves do not change.
When
In a linear regression, when the scatter plot of the residuals shows a funnel or when one wants to be on the safe side. There must be enough cases for the number of predictors; without case weights.
How it works in Statable
- Run the card "Can something be predicted?" with a target and predictors.
- Under the result open the section "Robust standard errors (HC3)". It calculates at once.
Reading the result
- Table "Coefficients with robust standard errors": coefficient, standard error (usual), standard error (robust), t, p and 95% interval (robust).
- If the robust standard errors differ clearly from the usual ones, the spread of the residuals is probably not equal; the robust values are then the more reliable. If they lie close together, there is no hint of unequal spread.
What is often misunderstood
Robust standard errors fix only the unequal spread of the residuals. They do not fix a wrong form of the relationship (for example curved instead of straight) or dependent observations. If a single case determines its own result alone (leverage 1), the robust calculation is not possible.
Reporting the result
Report: that robust standard errors (HC3) were used and why (for example a funnel in the residual plot), then for each predictor the coefficient B, the robust standard error, t with degrees of freedom, p and the 95% interval, plus R² and N. The coefficients themselves stay unchanged; only standard errors, p values and intervals change. Also: the usual standard errors for comparison. HC3 is recommended mainly for smaller samples (Long & Ervin 2000, The American Statistician 54, 217-224).
Because of [unequal spread of the residuals] heteroskedasticity-consistent standard errors (HC3) were used. [Predictor]: B = …, SE (robust) = …, t(…) = …, p = …, 95% CI […, …]. Model: R² = …, N = ….
For specialists
b = (X'X)⁻¹ X'y; V_HC3 = (X'X)⁻¹ · Σ [x_i x_i' e_i² / (1 - h_i)²] · (X'X)⁻¹ with leverage h_i. t = b / se_HC3, p and interval with the t distribution (df = n - k). Reference values: R sandwich::vcovHC(type = "HC3").
Sources
White, H. (1980). A heteroskedasticity-consistent covariance matrix estimator and a direct test for heteroskedasticity. Econometrica, 48, 817-838. MacKinnon, J. G. & White, H. (1985). Some heteroskedasticity-consistent covariance matrix estimators with improved finite sample properties. Journal of Econometrics, 29, 305-325. Long, J. S. & Ervin, L. H. (2000). Using heteroscedasticity consistent standard errors in the linear regression model. The American Statistician, 54, 217-224.