Description Usage Arguments Value Methods (by class)
Resample or subsample data rows from a data.frame
or a list containing
data.frame
s, vectors and/or matrices.
1 2 3 4 5 6 7 8 9 10 | resample(data, method = c("subsample", "bootstrap"), strata = NULL,
fraction = 0.5, ...)
## S3 method for class 'data.frame'
resample(data, method = c("subsample", "bootstrap"),
strata = NULL, fraction = 0.5)
## S3 method for class 'list'
resample(data, method = c("subsample", "bootstrap"),
strata = NULL, fraction = 0.5)
|
data |
the data used for the model fit, a |
method |
resampling method, either "subsample" (without replacement) or "bootstrap" (with replacement) |
strata |
for subsampling, a vector with length nrow(data) defining the strata |
fraction |
subsampling fraction |
... |
further arguments handed over to methods |
the subsampled or resampled data
data.frame
: method for data.frames
list
: entries in data
have to be numeric vectors,
matrices or data.frames that all have the same length or number of rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.