size_EC: Maximal size of the exact-corrected 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 the exact-corrected confidence interval

Usage

1
size_EC(alpha, N.T, N.C, delta0, tolEC = 1e-04)

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

tolEC

positive numeric representing the tolerance for confidence interval convergence

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_EC(alpha=0.1,N.T=10,N.C=10,delta0=0.2,tolEC=1e-4)

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