Learn R Programming

mosaic (version 1.9.1)

update_ci: Update confidence interval

Description

Update the confidence interval portion of an object returned from binom.test using one of several alternative methods.

Usage

update_ci(
  object,
  method = c("clopper-pearson", "wald", "agresti-coull", "plus4", "score", "prop.test")
)

Value

an "htest" object with an updated confidence interval

Arguments

object

An "htest" object produced by binom.test()

method

a method for computing a confidence interval for a proportion.

See Also