mat_Chan: Chan (1998) exact p-value for all 2x2 tables

Description Usage Arguments Value References See Also Examples

View source: R/EC.R

Description

This function calculates the Chan p-values for all 2x2 tables given N.T, N.C and an ordering criterion; This function is primarily used in the size_Chan function.

Usage

1
mat_Chan(N.T, N.C, delta0, method = "MN")

Arguments

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

array of dimension (N.T+1)x(N.C+1) where the (i,j) element is the exact p-value for x.T=i and x.C=j

References

\insertRef

Chan:98EC

See Also

size_Chan

Examples

1
2
3
4
5
#8x6 array of the the Chan p-values based on Farrington & Manning
#statistic for all possible 2x2 tables arising from a sample size
#of 7 in the treatment group and 5 in the control group and 10%
#noninferiority margin.
mat_Chan(N.T=7,N.C=5,delta0=0.1,method="FM")

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