Sampling Covariance Matrix of the Standardized Regression Slopes
Source:R/betaSandwich-beta-sandwich-methods.R
vcov.betasandwich.RdSampling Covariance Matrix of the Standardized Regression Slopes
Usage
# S3 method for class 'betasandwich'
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)
## Methods -----------------------------------------------------------------
vcov(object = std)
#> NARTIC PCTGRT PCTSUPP
#> NARTIC 0.006172168 -0.003602529 -0.001943469
#> PCTGRT -0.003602529 0.006699155 -0.002443584
#> PCTSUPP -0.001943469 -0.002443584 0.007311625