View source: R/sampling_distributions.R
bootstrap | R Documentation |
The 'bootstrap' function can be used to handle sampling of tables of individual patient data by selecting observations from the table with replacement
bootstrap(x, id = NULL, strata = NULL, weight = NULL)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.