NB {betaNB} | R Documentation |
Generate the Sampling Distribution of Sample Covariances Using Nonparametric Bootstrapping
NB(object, R = 5000L, seed = NULL)
object |
Object of class |
R |
Positive integer. Number of bootstrap replications. |
seed |
Integer. Seed number for reproducibility. |
Returns an object
of class nb
which is a list with the following elements:
Function call.
Function arguments.
Processed lm
object.
Sampling distribution of sample covariances.
Jackknife estimates.
Ivan Jacob Agaloos Pesigan
Efron, B., & Tibshirani, R. J. (1993) An introduction to the bootstrap. Chapman & Hall.
Other Beta Nonparametric Bootstrap Functions:
BetaNB()
,
DeltaRSqNB()
,
DiffBetaNB()
,
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., 20000L for actual research
seed = 0508
)
nb
# The `nb` object can be passed as the first argument
# to the following functions
# - BetaNB
# - DeltaRSqNB
# - DiffBetaNB
# - PCorNB
# - RSqNB
# - SCorNB