Sampling Covariance Matrix for an Object of Class essandwich
Source: R/betaSandwich-es-sandwich-methods.R
vcov.essandwich.RdSampling Covariance Matrix for an Object of Class essandwich
Usage
# S3 method for class 'essandwich'
vcov(object, ...)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