Skip to contents

Calculate coefficient of variation from an ACS estimate and MOE.

Usage

acs_cv(estimate, moe, conf = 0.9)

Arguments

estimate

Numeric estimate.

moe

Numeric MOE.

conf

Confidence level associated with moe.

Value

Numeric coefficient of variation, using standard error divided by absolute estimate.

Examples

acs_cv(estimate = 1000, moe = 80)
#> [1] 0.04863655
acs_cv(estimate = c(1000, 100, 0), moe = c(80, 60, 5))
#> [1] 0.04863655 0.36477410        Inf