ExactCIdiff2: Inductive confidence intervals for the difference between two...

Exact one-sided and two-sided 1-alpha confidence interval, main functionsR Documentation

Inductive confidence intervals for the difference between two proportions

Description

The function BinomialCIone and PairedCIone are the called functions for the main function BinomCI and PairedCI, respectively.

Arguments

n12

the number of subjects in the paired study who have success from the treatment and failure from the control

t

the number of subjects in the paired study who have the same results from the treatment and control, t=n11+n22

n21

the number of subjects in the paired study who have success from the contol and failure from the treatment

conf.level

Confience level, 95% is the default value.

CItype

c("Lower","Upper","Two.sided"), lower one-sided confidence interval [L,1], upper one-sided confidence interval [-1,U], two-sided confidence interval [L,U], "Two.sided" is the default value

precision

Precision of the confidence interval, default is 0.00001 rounded to 5 decimals

grid.one

two-step grid search algorithm is used. grid.one is the number of points for searching the global maximum of the tail probability in the first step. 30 is the default value

grid.two

grid.two is the number of points for searching the global maximum of the tail probability in the second step. 20 is the default value

Value

PairedCI gives the estimate of (p1-p2), which is (n12/-n21)/(n12+t+n21), and the exact confidence interval.


ExactCIdiff documentation built on July 9, 2022, 1:06 a.m.