pct.moe | R Documentation |
Estimates the margin of error (MOE) that characterizes uncertainty, for a ratio (a/b), based on a, b, and their MOE values.
pct.moe(a, b, a.moe, b.moe)
a |
Numerators, as a vector |
b |
Denominators, as a vector (should be same length as a, or it is recycled) |
a.moe |
Margins of error for numerators, as a vector (should be same length as a). |
b.moe |
Margins of error for denominators, as a vector (should be same length as a, or it is recycled). |
This is based on US Census Bureau recommendations for working with American Community Survey summary file data. See http://www.census.gov/programs-surveys/acs/guidance.html and http://www.census.gov/library/publications/2009/acs/researchers.html For example, one can estimate MOE for percent poor in a block group, given estimates and margins of error for the count who are poor, and the count for whom poverty status is known.
Returns margin(s) of error same shape as parameter a
sumoe()
x <- pct.moe(15, 100, 3, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.