This function generates bootstrap samples from the input metadata. It samples with replacement within each group defined in the metadata, and optionally adjusts for paired groups.
bootstrapS(niter, meta.info, group.name)
A matrix of dimension niter
x n
, where n
is the
number of samples. Each row corresponds to a bootstrap sample, and each
entry is a resampled row name from the metadata.
The function works by resampling the row names of the metadata for each group separately.