bootstrap_samples: generate bootstrap samples

bootstrap_samplesR Documentation

generate bootstrap samples

Description

Generates n_bootstrap samples, each with n_sample entries, from the provided indices. See Details for more information.

Usage

bootstrap_samples(
  n_indices,
  n_bootstrap = 100,
  n_sample = NULL,
  min_indices = 4
)

Arguments

n_indices

the indices to take the bootstrap sample from

n_bootstrap

how many bootstrap samples to generate? (default is 1000)

n_sample

how many items should be in each sample? See Details.

min_indices

the minimum number of indices to be willing to work with

Details

A bootstrap sample is a sample where the entries have been sampled with replacement. In general, a bootstrap sample has the same number of entries as the original sample. However, there may be cases where upsampling to specific number may be useful. Therefore, the parameter n_sample is provided to enable upsampling the original indices to a larger number. If n_sample is NULL, then no upsampling will be done.

Value

list of bootstrap sampled indices


MoseleyBioinformaticsLab/FTMS.peakCharacterization documentation built on April 27, 2022, 3:32 a.m.