bootstrap | R Documentation |
A sampling distribution of rep
replicates is generated
for the specified estimator
with replacement with a
bootstrap sample size of n
.
bootstrap(sample, rep, n = "auto", estimator = mean, seed = NULL)
sample |
A numeric vector to bootstrap |
rep |
A numeric vector for number of replicates |
n |
A numeric or character vector for the size of bootstrap samples |
estimator |
A function that is one of |
seed |
A numeric vector as random seed. Can be |
A numeric vector for bootstrap distribution
bootstrap(c(1, 2, 3), 3, 3) bootstrap(c(1, 2, 3), 3, 3, estimator = var, seed = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.