Computes the weighted estimator for the mean of a column. Alias for
weightedMean
HTmean(var, weights, popTot = NULL)
Estimated mean
column of variable of interest
column of weights matching the variable of interest
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.
weightedMean