Learn R Programming

lsasim (version 2.1.4)

jackknife: Generate replicates of a dataset using Jackknife

Description

Generate replicates of a dataset using Jackknife

Usage

jackknife(data, weight_cols = "none", drop = TRUE)

Value

a list containing all the Jackknife replicates of `data`

Arguments

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

See Also

brr

Examples

Run this code
x <- data.frame(
    number = 1:5,
    letter = LETTERS[1:5],
    stringsAsFactors = FALSE
)
jackknife(x)
jackknife(x, drop = FALSE)

Run the code above in your browser using DataLab