acs.quantile.stats: Compute quantiles and standard errors of quantiles on ACS...

Description Usage Arguments Value Examples

View source: R/acs.quantile.stats.R

Description

Estimate a range of quantiles on ACS PUMS data using the sample weights for the point estimate and the direct method, involving the replicate weights for estimating the standard errors of those quantiles.

Usage

1
2
acs.quantile.stats(x, field, result.name = NULL, probs = c(0.1, 0.25, 0.5,
  0.75, 0.9))

Arguments

x

a data frame of PUMS data

field

(string) name of a numerical field to take the quantiles over

result.name

name of estimate column in result; default is field

probs

a vector of quantiles to take; decimals in [0.0, 1.0]

Value

data.frame containing point estimate, standard error, and 90 margin-of-error for the selected quantiles of x$field

Examples

1
2
# Some quantiles of household income for Washington State in 2016
acs.quantile.stats(wa.house16, 'HINCP', 'HH.Income')

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