survey: Functions for post-stratification adjustments in surveys

surveyR Documentation

Functions for post-stratification adjustments in surveys

Description

Functions for linear combinations

Usage

std(x, div = sum(x))

jk_lin_comb_se(x, by, w, check = TRUE)

Arguments

x

vector of weights

div

divisor (default: sum(x))

by

stratification variable or list of stratification variable. Default: single level for unstratified samples

w

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

Details

Standardize a vector of weights

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.


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