est_proportion: Estimate a proporiton and associated uncertainty.

View source: R/est_proportion.R

est_proportionR Documentation

Estimate a proporiton and associated uncertainty.

Description

estimate_proportion estimates a proporiton using the maximum likelihood estimator. Uncertainty is estimated by either the Wald or Score methods.

Usage

est_proportion(x, n, method = c("score", "wald"), alpha = 0.05)

Arguments

x, n

An integer value of the count of successes (x) and trials (n).

method

'wald', 'exact', 'score'. The default method is 'score'.

alpha

Type I error rate. Default is set at 0.05 to produce 95 confidence intervals.

Author(s)

Ryan N. Kinzer

Examples

estimate_proportion(x =  10, n = 100, method = 'score', alpha = 0.05)


ryankinzer/cuyem documentation built on April 20, 2024, 2:10 p.m.