Learn R Programming

OOmisc (version 1.2)

ci.prop: A function to calculate exact and approximate confidence intervals for proportion.

Description

Calculates exact and approximate confidence intervals for the proportion of a desired category level.

Usage

ci.prop(x, n, a)

Arguments

x
a numeric value which denotes the frequency of the desired category.
n
a numeric value which denotes the sample size.
a
a numeric value which denotes the significance level.

Value

Returns a matrix output which includes both the exact and approximate confidence intervals.

References

Ilk, O. (2011). R Yazilimina Giris [Introduction to R Language]. ODTU Yayincilik [METU Press].

Examples

Run this code
ci.prop(50,100,0.05)

Run the code above in your browser using DataLab