na.rm: [logical] indicating whether NA values should be removed before the computation proceeds (default: FALSE).
Details
weighted_total and weighted_mean compute, respectively, the Horvitz-Thompson estimator of the population total and the Hajek estimator of the population mean.
Returns
Estimated population mean or total
See Also
Overview (of all implemented functions)
Examples
head(workplace)# Horvitz-Thompson estimator of the totalweighted_total(workplace$employment, workplace$weight)# Hajek estimator of the meanweighted_mean(workplace$employment, workplace$weight)