[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.
head(workplace)
# Horvitz-Thompson estimator of the totalweighted_total(workplace$employment, workplace$weight)
# Hajek estimator of the meanweighted_mean(workplace$employment, workplace$weight)