weightedMean: Weighted estimator for the mean

Description Usage Arguments Value See Also

View source: R/estimators.R

Description

Computes the weighted estimator for the mean of a column

Usage

1

Arguments

var

column of variable of interest

weights

column of weights matching the variable of interest

popTot

population size, used in Horvitz-Thompson-like estimation. If no value is given for popTot, default value is the sum of weights. In the context of survey sampling, this is equivalent to using an Hajek estimate.

Value

Estimated mean

See Also

HTmean


icarus documentation built on May 29, 2017, 9:12 a.m.