Skip to contents

Propagate ACS uncertainty for a difference.

Usage

acs_diff(estimate1, moe1, estimate2, moe2, cov = 0, conf = 0.9)

Arguments

estimate1

First estimate.

moe1

MOE for estimate1.

estimate2

Second estimate.

moe2

MOE for estimate2.

cov

Covariance between the two estimates on the standard-error scale.

conf

Confidence level associated with input and output MOEs.

Value

A data frame with estimate, moe, and se.

Examples

acs_diff(100, 10, 40, 8)
#>   estimate      moe       se
#> 1       60 12.80625 7.785646
acs_diff(100, 10, 40, 8, cov = 5)
#>   estimate      moe       se
#> 1       60 11.70233 7.114512