Summary Method for an Object of Class betamc
Usage
# S3 method for class 'betamc'
summary(object, alpha = NULL, digits = 4, ...)Arguments
- object
Object of Class
betamc, that is, the output of theBetaMC(),RSqMC(),SCorMC(),DeltaRSqMC(),PCorMC(),FSqMC(), orDiffBetaMC()functions.- alpha
Numeric vector. Significance level \(\alpha\). If
alpha = NULL, use the argumentalphaused inobject.- digits
Digits to print.
- ...
additional arguments.
Value
Returns a matrix of estimates, standard errors, number of Monte Carlo replications, and confidence intervals.
Details
The confidence intervals are percentile intervals, \(\left[ \hat{G}^{-1} \left( \alpha / 2 \right), \hat{G}^{-1} \left( 1 - \alpha / 2 \right) \right]\), where \(\hat{G}\) is the empirical distribution function of the Monte Carlo draws (type 7 quantiles). The standard errors are the standard deviations of the draws.
Examples
# Data ---------------------------------------------------------------------
data("nas1982", package = "betaMC")
# Fit Model in lm ----------------------------------------------------------
object <- stats::lm(
formula = QUALITY ~ NARTIC + PCTGRT + PCTSUPP,
data = nas1982
)
# MC -----------------------------------------------------------------------
mc <- MC(
object = object,
R = 100, # use a large value e.g., 20000L for actual research
seed = 0508
)
# BetaMC -------------------------------------------------------------------
out <- BetaMC(object = mc, alpha = 0.05)
## Methods -----------------------------------------------------------------
summary(object = out)
#> Call:
#> BetaMC(object = mc, alpha = 0.05)
#>
#> Standardized regression slopes
#> type = "hc3"
#> est se R 2.5% 97.5%
#> NARTIC 0.4951 0.0805 100 0.3107 0.6135
#> PCTGRT 0.3915 0.0810 100 0.2495 0.5347
#> PCTSUPP 0.2632 0.0730 100 0.1307 0.4055