Skip to contents

Propagate ACS uncertainty for a proportion.

Usage

acs_prop(num, num_moe, denom, denom_moe, cov = 0, conf = 0.9)

Arguments

num

Numerator estimate.

num_moe

Numerator MOE.

denom

Denominator estimate.

denom_moe

Denominator MOE.

cov

Numerator-denominator covariance on the standard-error scale.

conf

Confidence level associated with input and output MOEs.

Value

A data frame with estimate, moe, and se.

Details

This function follows the Census approximation used for proportions where the numerator is a subset of the denominator. It does not validate that num <= denom; behavior for non-nested ratios is formulaic rather than a claim that the inputs define a valid proportion.

Examples

acs_prop(num = 10, num_moe = 2, denom = 50, denom_moe = 5)
#>   estimate        moe         se
#> 1      0.2 0.03464102 0.02106024