jackknife: Generate replicates of a dataset using Jackknife

View source: R/jackknife.R

jackknifeR Documentation

Generate replicates of a dataset using Jackknife

Description

Generate replicates of a dataset using Jackknife

Usage

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

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

Value

a list containing all the Jackknife replicates of 'data'

See Also

brr

Examples

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

tmatta/lsasim documentation built on Aug. 25, 2023, 5:50 p.m.