Confidence Intervals for Standardized Regression Slopes
Source:R/betaSandwich-beta-sandwich-methods.R
confint.betasandwich.RdConfidence Intervals for Standardized Regression Slopes
Usage
# S3 method for class 'betasandwich'
confint(object, parm = NULL, level = 0.95, ...)Details
The confidence intervals are
\(\hat{\theta} \pm t_{1 - \alpha / 2, n - k}
\widehat{\operatorname{se}} \left( \hat{\theta} \right)\),
where \(\widehat{\operatorname{se}}\) is the square root of the
diagonal of the sampling covariance matrix
(see BetaHC(), BetaN(), and BetaADF()),
\(n\) is the sample size, and \(k\) is the number of regression
parameters, including the intercept.
The test statistic is
\(\hat{\theta} / \widehat{\operatorname{se}} \left( \hat{\theta} \right)\)
with \(n - k\) degrees of freedom.
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 -----------------------------------------------------------------
confint(object = std, level = 0.95)
#> 2.5 % 97.5 %
#> NARTIC 0.33659828 0.6536920
#> PCTGRT 0.22631203 0.5566654
#> PCTSUPP 0.09068548 0.4358099