jackknife | R Documentation |
Generate replicates of a dataset using Jackknife
jackknife(data, weight_cols = "none", drop = TRUE)
data |
dataset |
weight_cols |
vector of weight columns |
drop |
if 'TRUE', the observation that will not be part of the subsample is dropped from the dataset. Otherwise, it stays in the dataset but a new weight column is created to differentiate the selected observations |
a list containing all the Jackknife replicates of 'data'
brr
x <- data.frame(
number = 1:5,
letter = LETTERS[1:5],
stringsAsFactors = FALSE
)
jackknife(x)
jackknife(x, drop = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.