binomTest: Confidence Intervals for Binomial Proportions

Description Usage Arguments Details Author(s) See Also Examples

View source: R/binomTest.R

Description

Generates lower and upper confidence interval limits for a binomial proportion using different types of confidence intervals.

Usage

1
2
3
 binomTest(n, x,
           alpha = 0.05,
           intervalType = "Clopper-Pearson")

Arguments

n

sample size

x

number of successes

alpha

significance level for confidence interval

intervalType

type of confidence interval used; either "Clopper-Pearson", "Wald", "Wilson-Score", "Jeffreys", "Agresti-Coull", "Arcsine", or "Blaker"

Details

Generates a lower and upper confidence interval limit for a binomial proportion using

When the binomTest function is called, it returns a two-element vector in which

This confidence interval is constructed by calculating lower and upper bounds associated with the confidence interval procedure specified by the intervalType argument. Lower bounds that are negative are set to 0 and upper bounds that are greater than 1 are set to 1.

Author(s)

Hayeon Park (hpark03@email.wm.edu), Larry Leemis (leemis@math.wm.edu)

See Also

dbinom

Examples

1
2
  binomTest(10, 6)
  binomTest(100, 30, intervalType = "Agresti-Coull")

conf documentation built on Aug. 24, 2020, 5:08 p.m.