Skip to contents

When the survey package is installed and strata is supplied, defers to survey::as.svrepdesign(..., type = "JKn") for variance compatibility.

Usage

morie_weights_jackknife(weights, strata = NULL, jk_type = c("JK1", "JKn"))

Arguments

weights

Numeric vector of unit-level design weights.

strata

Optional vector of stratum identifiers aligned with weights.

jk_type

Character; jackknife type ("jk1", "jk2", "jkn").

Value

A numeric matrix.

Examples

set.seed(1)
res <- morie_weights_jackknife(runif(10, 0.5, 2))
str(res, max.level = 1)
#>  num [1:10, 1:10] 0 1.135 1.458 1.997 0.861 ...