stat_general: Test statistics for noninferiority hypothesis

Description Usage Arguments Value References Examples

View source: R/EC.R

Description

This function calculate statistics for testing noninferiority based on Santner & Snell (1980), Blackwelder (1982), Miettinen & Nurminen (1985) and Farrington & Manning (1990).

Usage

1
stat_general(x.T, x.C, N.T, N.C, delta0, method)

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

delta0

numeric between 0 and 1 representing the noninferiority margin

method

character representing the method for ordering criterion("MN","FM","SS","Blackwelder")

Value

numeric representing the value of the test statistic

References

\insertRef

Santner:80EC

\insertRef

Blackwelder:82EC

\insertRef

Miettinen:85EC

\insertRef

Farrington:90EC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#First example calculates the Miettinen & Nurminen 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 Farrington & Manning 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_general(x.T=83,x.C=69,N.T=88,N.C=76,delta0=0.1,method="MN")
stat_general(x.T=8,x.C=3,N.T=15,N.C=15,delta0=0.2,method="FM")

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