BetaMC {betaMC} | R Documentation |
Estimate Standardized Regression Coefficients and Generate the Corresponding Sampling Distribution Using the Monte Carlo Method
BetaMC(object, alpha = c(0.05, 0.01, 0.001))
object |
Object of class |
alpha |
Numeric vector.
Significance level |
The vector of standardized regression coefficients
(\boldsymbol{\hat{\beta}}
)
is derived from each randomly generated vector of parameter estimates.
Confidence intervals are generated by obtaining
percentiles corresponding to 100(1 - \alpha)\%
from the generated sampling
distribution of \boldsymbol{\hat{\beta}}
,
where \alpha
is the significance level.
Returns an object
of class betamc
which is a list with the following elements:
Function call.
Function arguments.
Sampling distribution of
\boldsymbol{\hat{\beta}}
.
Sampling variance-covariance matrix of
\boldsymbol{\hat{\beta}}
.
Vector of estimated
\boldsymbol{\hat{\beta}}
.
Function used ("BetaMC").
Ivan Jacob Agaloos Pesigan
Other Beta Monte Carlo Functions:
DeltaRSqMC()
,
DiffBetaMC()
,
MC()
,
MCMI()
,
PCorMC()
,
RSqMC()
,
SCorMC()
# Data ---------------------------------------------------------------------
data("nas1982", package = "betaMC")
# Fit Model in lm ----------------------------------------------------------
object <- lm(QUALITY ~ NARTIC + PCTGRT + PCTSUPP, data = nas1982)
# MC -----------------------------------------------------------------------
mc <- MC(
object,
R = 100, # use a large value e.g., 20000L for actual research
seed = 0508
)
# BetaMC -------------------------------------------------------------------
out <- BetaMC(mc, alpha = 0.05)
## Methods -----------------------------------------------------------------
print(out)
summary(out)
coef(out)
vcov(out)
confint(out, level = 0.95)