ac_se: 'Agresti-Coull'ish Standard Errors

Description Usage Arguments Value Author(s) References Examples

Description

Agresti-Coull (1998) intervals are a great way to get a quick and non-terrible estimate of a proportion. They work by using a 'Wald' interval, after the addition of 2 successes and 2 failures to the sample (other numbers can be specified, via the wt argument). This function creates a Wald-style standard-error, after adding psuedo-responses.

Usage

1
ac_se(logical_var, wt = 2)

Arguments

logical_var

A logical vector

wt

The number of successes and failures to add to the sample before construction of a Wald interval

Value

numeric. An estimate of the sample's standard error.

Author(s)

Brendan Rocks rocks.brendan@gmail.com

References

Agresti, A., & Coull, B. A. (1998). Approximate is better than "exact" for interval estimation of binomial proportions. The American Statistician, 52(2), 119-126.

Examples

1

brendan-R/brocks documentation built on May 13, 2019, 5:07 a.m.