pct.moe: Margin of Error for a Percent (Ratio)

View source: R/pct.moe.R

pct.moeR Documentation

Margin of Error for a Percent (Ratio)

Description

Estimates the margin of error (MOE) that characterizes uncertainty, for a ratio (a/b), based on a, b, and their MOE values.

Usage

pct.moe(a, b, a.moe, b.moe)

Arguments

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).

Details

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.

Value

Returns margin(s) of error same shape as parameter a

See Also

sumoe()

Examples

	 x <- pct.moe(15, 100, 3, 10)

ejanalysis/ejanalysis documentation built on April 2, 2024, 10:12 a.m.