Description Usage Arguments Value References Examples
This function evaluates maximum size of the decision rule based on a given confidence interval method; see Hawila & Berg (2021)
1 2 3 4 5 6 7 8 9 10 11 12 | size_general(
alpha,
N.T,
N.C,
delta0,
method = "MN",
EC,
tolEC = 1e-06,
CZ,
tolCZ = 0.001,
eps = 0.3
)
|
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 |
method |
character representing the method for ordering criterion("MN","FM","SS","Blackwelder") |
EC |
logical. TRUE for the exact-corrected confidence limits. FALSE for default method without exact-correction. Only relevant if CZ=F |
tolEC |
positive numeric representing the tolerance for confidence interval convergence |
CZ |
logical. TRUE for Chan and Zhang confidence limits. FALSE for Exact-corrected (EC=T) or default method without correction (EC=F) |
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. |
numeric representing the level of test based on the specified confidence interval method
Hawila:21EC \insertRefChan:99EC \insertRefMiettinen:85EC
1 2 3 4 5 6 7 8 | #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_general(alpha=0.1,N.T=10,N.C=10,delta0=0.2,method="MN",EC=TRUE,tolEC=1e-4,CZ=FALSE,tolCZ=1e-3,eps=0.3)
#size_general(alpha=0.1,N.T=10,N.C=10,delta0=0.2,method="MN",EC=FALSE,tolEC=1e-4,CZ=TRUE,tolCZ=1e-3,eps=0.3)
size_general(alpha=0.1,N.T=10,N.C=10,delta0=0.2,method="MN",EC=FALSE,tolEC=1e-4,CZ=FALSE,tolCZ=1e-3,eps=0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.