Convert an ACS MOE to lower and upper confidence bounds.
Usage
moe_ci(estimate, moe, conf_in = 0.9, conf_out = 0.95)
Arguments
- estimate
Numeric estimate.
- moe
Numeric margin of error.
- conf_in
Confidence level associated with moe.
- conf_out
Desired confidence level for the returned interval.
Value
A data frame with estimate, lower, upper, and moe.
Examples
moe_ci(estimate = 100, moe = 10)
#> estimate lower upper moe
#> 1 100 88.08427 111.9157 11.91573
moe_ci(estimate = c(100, 200), moe = c(10, 25), conf_out = 0.99)
#> estimate lower upper moe
#> 1 100 84.34007 115.6599 15.65993
#> 2 200 160.85017 239.1498 39.14983