vcovHC function

Heteroscedasticity-Consistent Covariance Matrix

Heteroscedasticity-Consistent Covariance Matrix

Calculate Heteroscedasticity-Consistent Covariance Matrix from a linear model using the HC3 method from sandwich.

vcovHC(x)

Arguments

  • x: lm object

Returns

A matrix containing the covariance matrix estimate.

Examples

1+1
  • Maintainer: Kim Daniel Jakobsen
  • License: MIT + file LICENSE
  • Last published: 2024-02-26

Useful links