size_Wald: Maximal size of the Wald 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 Wald confidence interval

Usage

1
size_Wald(alpha, N.T, N.C, delta0)

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

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
#Wald's method where each group has a
#sample size of 10, alpha is 0.1 and the noninferiority margin
#is 20%.
size_Wald(alpha=0.1,N.T=10,N.C=10,delta0=0.1)

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