ub_wn: upper bound wilson

Description Usage Arguments Value Examples

View source: R/ub_wn.R

Description

calculates upper bound of (1-alpha)100% confidence interval using Wilson's method

Usage

1
ub_wn(z, phat, n_obs)

Arguments

z

numeric, quantile of either standard normal or t distribution coresponding to the desired confidence level 1- alpha

phat

numeric, phat proporrtion estimate

n_obs

numeric, n_obs number of observations

Value

numeric

Examples

1
ub_wn(1.96, 0.6, 100)

yuliasidi/bin2mi documentation built on March 11, 2021, 8:10 p.m.