bootstrap: Bootstrap sampling of a data frame

View source: R/sampling_distributions.R

bootstrapR Documentation

Bootstrap sampling of a data frame

Description

The 'bootstrap' function can be used to handle sampling of tables of individual patient data by selecting observations from the table with replacement

Usage

bootstrap(x, id = NULL, strata = NULL, weight = NULL)

Arguments

x

The data frame to be sampled

id

An optional column name representing the unique identifier. If not specified, each row is assumed to represent a unique observation.

strata

An optional character vector of column names representing the strata within which resampling should be performed.

weight

An optional column name representing the probability weight for each observation.


jrdnmdhl/heRomod2 documentation built on June 29, 2023, 8:43 p.m.