Description Usage Arguments Value Examples
View source: R/acs.quantile.stats.R
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.
1 2 | acs.quantile.stats(x, field, result.name = NULL, probs = c(0.1, 0.25, 0.5,
0.75, 0.9))
|
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 |
probs |
a vector of quantiles to take; decimals in |
data.frame containing point estimate, standard error, and 90
margin-of-error for the selected quantiles of x$field
1 2 | # Some quantiles of household income for Washington State in 2016
acs.quantile.stats(wa.house16, 'HINCP', 'HH.Income')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.