moe: Margin of error

Description Usage Arguments Details Value Examples

View source: R/utils-moe.R

Description

Calcuates the margin of error.

Usage

1
moe(est, n = 400, confidence = 95)

Arguments

est

The point estimate as a percent.

n

The sample size.

confidence

The confidence level as a percent

Details

Under the usual frequentist assumptions, the underlying percentage of the quantity of interested in the population ought to be within ± the returned value of the original estimate

Value

The margin of error in percentage points.

Examples

1
moe(50, 750, 95)

mattysimonson/exploratorium documentation built on Dec. 21, 2021, 3:49 p.m.