strat_sample_boot: Returns N stratified bootstrap samples of a dataframe.

Description Usage Arguments Value

View source: R/helper_functions.R

Description

Returns N stratified bootstrap samples of a dataframe.

Usage

1
strat_sample_boot(df, strat, nboot, parallel = TRUE)

Arguments

df

Dataframe to sample from.

strat

String specifying strata column.

nboot

Numeric value specifying number of bootstrap samples.

parallel

Logical value. Helpful when nboot is large.

Value

List of N vectors containing bootstrap indices.


dmolitor/umbrella documentation built on Nov. 10, 2020, 1:25 a.m.