ci_diff_proportion: Title

View source: R/CI.R

ci_diff_proportionR Documentation

Title

Description

Title

Usage

ci_diff_proportion(
  x1,
  n1,
  x2,
  n2,
  conf.level = 0.95,
  sides = c("two.sided", "left", "right"),
  method = c("ac", "wald", "waldcc", "score", "scorecc", "mn", "mee", "blj", "ha",
    "hal", "jp")
)

Arguments

x1

number of success for the first group

n1

number of trails for the first group

x2

number of successes for the second group

n2

number of trails for the second group

conf.level

confidence level, defaults to 0.95.

sides

a character string specifying the side of the confidence interval, must be one of "two.sided" (default), "left" or "right".

method

one of "wald", "waldcc", "ac", "score", "scorecc", "mn", "mee", "blj", "ha", "hal", "jp".

Value

A matrix with 3 columns containing the estimate, the lower and the upper confidence intervall.

Examples

ci_diff_proportion(x1=56, n1=70, x2=48, n2=80)

the8thday/ClinStats documentation built on July 20, 2022, 11:36 p.m.