jk_wtd_means: Post-stratification jacknife estimates of standard error

View source: R/survey.R

jk_wtd_meansR Documentation

Post-stratification jacknife estimates of standard error

Description

Jacknife estimates of the weighted mean with a stratified sample. Weights are adjusted to take the change in n into account when obtaining the jacknife estimate dropping an observation within a stratum.

Usage

jk_wtd_means(x, by, w, check = TRUE, FUN = wtd_mean)

Arguments

x

numerical vector

by

stratification variable or list of stratification variable

w

vector of weights, e.g. Horvitz-Thomson weights or renormed version

check

(default: TRUE) check that 'w' is constant within levels of 'by'

FUN

(default: wtd_mean) function used to obtain estimate

See Also

wtd_mean for weighted means, link{lin_comb} for linear combinations, jk_wtd_mean_se for a jacknife estimate of the SE of a weighted mean and jk_lin_comb_se for a jacknife estimate of the SE of a linear combination.

Other Post-stratification survey functions: jk_wtd_mean_se(), lin_comb(), wtd_mean()


gmonette/spida2 documentation built on Aug. 11, 2024, 7:52 p.m.