Summary Method for an Object of Class essandwich
Source: R/betaSandwich-es-sandwich-methods.R
summary.essandwich.RdSummary Method for an Object of Class essandwich
Usage
# S3 method for class 'essandwich'
summary(object, alpha = NULL, digits = 4, ...)Value
Returns a matrix of estimates, standard errors, test statistics, p-values, and confidence intervals.
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 = "betaSandwich")
# Fit Model in lm ----------------------------------------------------------
object <- stats::lm(
formula = QUALITY ~ NARTIC + PCTGRT + PCTSUPP,
data = nas1982
)
# BetaHC -------------------------------------------------------------------
std <- BetaHC(object = object)
# RSqSandwich --------------------------------------------------------------
out <- RSqSandwich(object = std)
## Methods -----------------------------------------------------------------
summary(object = out)
#> Call:
#> RSqSandwich(object = std)
#>
#> R-squared and adjusted R-squared with HC3 standard errors:
#> est se z p 0.05% 0.5% 2.5% 97.5% 99.5% 99.95%
#> rsq 0.8045 0.0573 14.0286 0 0.6158 0.6568 0.6921 0.9169 0.9522 0.9932
#> adj 0.7906 0.0614 12.8662 0 0.5884 0.6323 0.6701 0.9110 0.9488 0.9928