prop.ci: Proportion Confidence Interval

View source: R/prop.ci.R

prop.ciR Documentation

Proportion Confidence Interval

Description

Proportion Confidence Interval

Usage

prop.ci(n, k, conf = 95)

Arguments

n

is population size.

k

is number of success.

conf

is confidence level desired. default at 95.

Value

p Is the succses rate, given n and k.

q Is the opposite probability of p (1-p).

SE The Standard Error estimate based on empirical observations (p and q).

Lower and Upper are the margins of the confidence interval.

conf is the confidence level.

binom2norm answers whether the assumption of normality is met.

Note

Calculates the binomal to normal assumption: p&q * n > 5.

See Also

prop.sig for a proportion significance test

Examples

prop.ci(n=100,k=30)
prop.ci(100,30,conf=99)

bgupsych/bgupsych documentation built on Nov. 1, 2023, 9:41 a.m.