Skip to contents

Confidence Intervals for Standardized Regression Slopes

Usage

# S3 method for class 'betasandwich'
confint(object, parm = NULL, level = 0.95, ...)

Arguments

object

Object of class betasandwich.

parm

a specification of which parameters are to be given confidence intervals, either a vector of numbers or a vector of names. If missing, all parameters are considered.

level

the confidence level required.

...

additional arguments.

Value

Returns a matrix of confidence intervals.

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.

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)

## 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