Skip to contents

Sampling Covariance Matrix for an Object of Class essandwich

Usage

# S3 method for class 'essandwich'
vcov(object, ...)

Arguments

object

Object of class essandwich.

...

additional arguments.

Value

Returns a matrix of the variance-covariance matrix of the estimates.

Author

Ivan Jacob Agaloos Pesigan

Examples

# Data ---------------------------------------------------------------------
data("nas1982", package = "betaSandwich")

# Fit Model in lm ----------------------------------------------------------
object <- stats::lm(
  formula = QUALITY ~ NARTIC + PCTGRT + PCTSUPP,
  data = nas1982
)

# BetaHC -------------------------------------------------------------------
std <- BetaHC(object = object)

# RSqSandwich --------------------------------------------------------------
out <- RSqSandwich(object = std)

## Methods -----------------------------------------------------------------
vcov(object = out)
#>             rsq         adj
#> rsq 0.003288894 0.003523815
#> adj 0.003523815 0.003775516