DiffBetaNB {betaNB} | R Documentation |
Estimate Differences of Standardized Slopes and Generate the Corresponding Sampling Distribution Using Nonparametric Bootstrapping
DiffBetaNB(object, alpha = c(0.05, 0.01, 0.001))
object |
Object of class |
alpha |
Numeric vector.
Significance level |
The vector of differences of standardized regression slopes
is estimated from bootstrap samples.
Confidence intervals are generated by obtaining
percentiles corresponding to 100(1 - \alpha)\%
from the generated sampling
distribution of differences of standardized regression slopes,
where \alpha
is the significance level.
Returns an object
of class betanb
which is a list with the following elements:
Function call.
Function arguments.
Sampling distribution of differences of standardized regression slopes.
Sampling variance-covariance matrix of differences of standardized regression slopes.
Vector of estimated differences of standardized regression slopes.
Function used ("DiffBetaNB").
Ivan Jacob Agaloos Pesigan
Other Beta Nonparametric Bootstrap Functions:
BetaNB()
,
DeltaRSqNB()
,
NB()
,
PCorNB()
,
RSqNB()
,
SCorNB()
# Data ---------------------------------------------------------------------
data("nas1982", package = "betaNB")
# Fit Model in lm ----------------------------------------------------------
object <- lm(QUALITY ~ NARTIC + PCTGRT + PCTSUPP, data = nas1982)
# NB -----------------------------------------------------------------------
nb <- NB(
object,
R = 100, # use a large value e.g., 5000L for actual research
seed = 0508
)
# DiffBetaNB ---------------------------------------------------------------
out <- DiffBetaNB(nb, alpha = 0.05)
## Methods -----------------------------------------------------------------
print(out)
summary(out)
coef(out)
vcov(out)
confint(out, level = 0.95)