stat_EC: Exact-corrected test statistic

Description Usage Arguments Value References Examples

View source: R/EC.R

Description

This function calculates the exact-corrected test statistic

Usage

1
stat_EC(x.T, x.C, N.T, N.C, Delta, delta0)

Arguments

x.T

positive integer representing the observed number of responders in the treatment group

x.C

positive integer representing the observed number of responders in the control group

N.T

positive integer representing the sample size in the treatment group

N.C

positive integer representing the sample size in the control group

Delta

numeric between -1 and 1 representing the constraint for P.C-P.T

delta0

numeric between 0 and 1 representing the noninferiority margin

Value

numeric representing the value of the exact-corrected test statistic

References

\insertRef

Hawila:21EC

Examples

1
2
3
4
5
6
7
8
9
#First example calculates the exact-corrected test statistic for
#the Rodary et al. (1989) study with proportion of success in the treatment
#group being 83/88 and 69/76 for the control with a 10%
#noninferiority margin.
#Second example calculates the exact-corrected test statistic for
#the Fries et al. (1993) study with proportion of success in the treatment
#group being 8/15 and 3/15 for the control with a 20% noninferiority margin.
stat_EC(x.T=83,x.C=69,N.T=88,N.C=76,Delta=0.1,delta0=0.1)
stat_EC(x.T=8,x.C=3,N.T=15,N.C=15,Delta=0.2,delta0=0.2)

NourHawila/EC documentation built on Feb. 24, 2022, 8:24 a.m.