propci: Approximate and Exact Confidence Intervals for Proportions

Description Usage Arguments Value Examples

View source: R/4419_functions.r

Description

Produces confidence intervals for proportions through normal approximation and using exact methods based on the Beta distribution.

Usage

1
propci(x, n=NULL, conf.level=.95)

Arguments

x

An integer value representing the number of ones (successes) or a variable with only zeros, ones and (potentially) NAs.

n

If x is an integer, then n is the total number of observations from which the number of successes comes. Otherwise, n will be disregarded.

conf.level

Level of confidence for the interval

Value

A matrix giving the normal approximation and exact confidence intervals.

Examples

1
2

uwo4419 documentation built on Oct. 23, 2020, 8:08 p.m.