Confidence Intervals for an Object of Class esdelta
Source: R/betaDelta-es-delta-methods.R
confint.esdelta.RdConfidence Intervals for an Object of Class esdelta
Usage
# S3 method for class 'esdelta'
confint(object, parm = NULL, level = 0.95, ...)Details
The confidence intervals are \(\hat{\theta} \pm z_{1 - \alpha / 2} \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 of the effect size, and \(z_{p}\) is the \(p\) quantile of the standard normal distribution. The test statistic is \(z = \hat{\theta} / \widehat{\operatorname{se}} \left( \hat{\theta} \right)\).
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)
# RSqDelta -----------------------------------------------------------------
out <- RSqDelta(object = std)
## Methods -----------------------------------------------------------------
confint(object = out, level = 0.95)
#> 2.5 % 97.5 %
#> rsq 0.7031917 0.9058608
#> adj 0.6819911 0.8991366