size_CZ: Maximal size of the Chan & Zhang (1999) confidence interval

Description Usage Arguments Value References Examples

View source: R/EC.R

Description

This function evaluates maximum size of the decision rule based on Chan & Zhang's confidence interval

Usage

1
size_CZ(alpha, N.T, N.C, delta0, tolCZ = 0.001, eps = 0.3)

Arguments

alpha

numeric between 0 and 1 representing the significance level

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

tolCZ

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

eps

positive numeric representing the range from starting values based on Miettinen & Nurminen confidence limits.

Value

numeric representing the level of test based on the specified confidence interval method

References

\insertRef

Hawila:21EC

Examples

1
2
3
4
5
6
#The three examples calculate the level of the exact-corrected,
#Chan & Zhang and Asymptotic confidence interval based on the
#Miettenen and Nurminen test statistic where each group has a
#sample size of 10, alpha is 0.1 and the noninferiority margin
#is 20%.
#size_CZ(alpha=0.1,N.T=10,N.C=10,delta0=0.2,tolCZ=1e-3)

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