Description Usage Arguments Details Value Author(s) References See Also Examples
Generates B
number of nonparametric bootstrap
samples from the original sample data
.
data
is referred to as the empirical distribution
\hat{
F
}
%(\#eq:boot-ecdf)
.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
Vector, matrix or data frame. Sample data to bootstrap. The empirical distribution \hat{ F } %(\#eq:boot-ecdf) . |
B |
Integer. Number of bootstrap samples. |
par |
Logical.
If |
ncores |
Integer.
Number of cores to use if |
mc |
Logical.
If |
lb |
Logical.
If |
cl_eval |
Logical.
Execute |
cl_export |
Logical.
Execute |
cl_expr |
Expression.
Expression passed to |
cl_vars |
Character vector.
Names of objects to pass to |
For more details and examples see the following vignettes:
Returns a list of length B
of nonparametric bootstrap samples.
Ivan Jacob Agaloos Pesigan
Efron, B., & Tibshirani, R. J. (1993). An introduction to the bootstrap. New York, N.Y: Chapman & Hall.
Wikipedia: Bootstrapping (statistics)
Other bootstrap functions:
pbmvn()
,
pbuniv()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | B <- 5L
n <- 5
# vector----------------------------------------------------------------------
x <- rnorm(n = n)
xstar <- nb(
data = x,
B = B
)
str(xstar)
# matrix----------------------------------------------------------------------
x1 <- rnorm(n = n)
x2 <- rnorm(n = n)
x3 <- rnorm(n = n)
X <- cbind(x1, x2, x3)
Xstar <- nb(
data = X,
B = B
)
str(Xstar)
# data frame------------------------------------------------------------------
X <- as.data.frame(X)
Xstar <- nb(
data = X,
B = B
)
str(Xstar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.