pval_chan: Exact p-value of Chan (1998)

Description Usage Arguments Value References Examples

Description

This function calculates the exact p-value based on Chan (1998)

Usage

1
pval_Chan(x.T, x.C, N.T, N.C, delta0, method = "MN", lower = TRUE, 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")

lower

logical. TRUE for the null hypothesis P.T-P.C<=-delta0.FALSE for the null hypothesis P.T-P.C>-delta0

tol

positive numeric representing the increment size for domain of Delta. Default is set to 0.001.

Value

numeric representing Chan's exact p-value

References

\insertRef

Chan:98EC

Examples

1
2
3
4
#The first example is taken from Rodary et al. (1989) which was analyzed by Chan (1998)
#The second example is taken from Hawila & Berg (2021)
pval_Chan(x.T=83,x.C=69,N.T=88,N.C=76,delta0=0.1,method="MN")
pval_Chan(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.