Confidence Intervals for Standardized Regression Slopes
Source:R/betaDelta-beta-delta-methods.R
confint.betadelta.RdConfidence Intervals for Standardized Regression Slopes
Usage
# S3 method for class 'betadelta'
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 delta-method sampling covariance matrix (see BetaDelta()),
\(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 = "betaDelta")
# Fit Model in lm ----------------------------------------------------------
object <- stats::lm(
formula = QUALITY ~ NARTIC + PCTGRT + PCTSUPP,
data = nas1982
)
# BetaDelta ----------------------------------------------------------------
std <- BetaDelta(object = object)
## Methods -----------------------------------------------------------------
confint(object = std, level = 0.95)
#> 2.5 % 97.5 %
#> NARTIC 0.3420563 0.6482339
#> PCTGRT 0.2360380 0.5469395
#> PCTSUPP 0.1124272 0.4140682