aggregate_moe {censusr} | R Documentation |
Aggregated margin of error across multiple geographies
aggregate_moe(x)
x |
A numeric vector containing margins of error for estimates in multiple geographies. |
Applies a root sum of squared errors. See page A-14 of this guide: https://www.census.gov/library/publications/2009/acs/researchers.html
The aggregated margin of error for the geographies.
Josie Kressner
x <- c(3, 5, 12, 4)
aggregate_moe(x)
data_frame(x = x, group = c(1, 1, 2, 2)) %>%
group_by(group) %>%
summarise(moe = aggregate_moe(x))