wtd_mean: Weighted mean

View source: R/survey.R

wtd_meanR Documentation

Weighted mean

Description

Weighted mean

Usage

wtd_mean(x, w)

Arguments

x

numerical vector

w

vector of weights replicated to have same length as x

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(), jk_wtd_means(), lin_comb()


gmonette/spida2 documentation built on Aug. 20, 2023, 7:21 p.m.