pval_cz: p-value corresponding to the Chan & Zhang confidence interval...

Description Usage Arguments Value References Examples

Description

This function computes the Chan & Zhang p-value given in Hawila & Berg (2021)

Usage

1
pval_CZ(x.T, x.C, N.T, N.C, delta0, method = "MN", tol = 0.001)

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")

tol

positive numeric representing the tolerance for calculation

Value

numeric representing the Chan & Zhang p-value

References

\insertRef

Hawila:21EC

Examples

1
2
#This example is taken from Hawila & Berg (2021)
pval_CZ(x.T=2,x.C=0,N.T=15,N.C=10,delta0=0.12,method="MN")

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