Learn R Programming

EpiForsk (version 0.2.0)

vcovHC: Heteroscedasticity-Consistent Covariance Matrix

Description

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

Usage

vcovHC(x)

Value

A matrix containing the covariance matrix estimate.

Arguments

x

lm object

Examples

Run this code
1+1

Run the code above in your browser using DataLab