size_MN: Maximal size of the Miettinen & Nurminen (1985) confidence...

Description Usage Arguments Value References Examples

View source: R/EC.R

Description

This function evaluates maximum size of the decision rule based on the Miettinen & Nurminen confidence interval

Usage

1
size_MN(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
#The example calculates the size of the 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_MN(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.