acs.total: Compute a weighted total of a numerical field in ACS PUMS...

Description Usage Arguments Value Examples

View source: R/acs.total.R

Description

Computes an estimate of a total of a numerical field in the ACS PUMS data using the correct sample weights. Note that these values may be slightly in error due to top or bottom coding of some numeric variables.

Usage

1
acs.total(x, field, wt.rep.num = NULL)

Arguments

x

data.frame or similar with data filtered to relevant rows

field

the data field to take the median of

wt.rep.num

the weight replicate number, if a replicate weight

Value

an estimate of the weighted total of field in the data

Examples

1
2
# Estimated total rent paid by reters in Washington State in 2016.
12 * acs.total(wa.house16, 'GRNTP')

davidthaler/PUMSutils documentation built on July 13, 2019, 9:58 a.m.