boot_vector_create.Rd
boot_vector_create
is a function that creates an matrix of
bootstrap resampling weights using either a multinomial distribution of mimic
a non-parametric bootstrap or a Dirichlet distribution.
boot_vector_create(data, seed = NULL, continuous = TRUE, cluster_id = NULL)
The input data, which can be either a data.frame or tibble
A seed for the random number generator to ensure reproducibility of bootstrap replications.
Use continuous bootstrap weights from a Dirichlet versus discrete weights from a multinomial
If specified, identifies unit of clustering and performs group-based bootstrap in which all individuals in a cluster receive the same bootstrap weight.
An matrix of bootstrap resampling weights with n
rows and
nboot
columns