vcovHC: Heteroskedasticity-consistent covariance matrix for...

View source: R/variance_hc.R

vcovHCR Documentation

Heteroskedasticity-consistent covariance matrix for predictions

Description

The heteroskedasticity-consistent covariance matrix for predictions is obtained with sandwich::vocvHC using sandwich method.

Usage

vcovHC(x, type = "HC3", ...)

Arguments

x

(prediction_cf) Counter-factual prediction.

type

(character) Type of HC covariance matrix.

...

Additional arguments for sandwich::vcovHC.

Value

Matrix of the heteroskedasticity-consistent covariance for the predictions.


RobinCar2 documentation built on April 3, 2025, 9:34 p.m.