Usage
nvDT(ratio,power,r,k,mu,mu0,contrast,sigma=NA,dist,alpha=0.05,mcs=1e+05,testcall)
Arguments
ratio
The pre-specified ratio of sample size in each of the treatment groups to the sample size in the control group
power
The power required to be achieved.
r
The least number of null hypotheses to be rejected, e.g.,when r=1, the sample size is evaluated on disjunctive power and when r=k, the sample size is evaluated on conjunctive power.
k
Number of hypotheses to be tested, $k\ge 2$ and $k\le 16$.
mu
Assumed population mean in each of the k treatment groups.
mu0
Assumed population mean in the control group.
contrast
If mu and mu0 are concerned of means of continous outcome, specify contrast="means"; if mu and mu0 are concerned of proportions of binary outcome, specify contrast="props".
sigma
The population error variance, which should be specified when contrast="means"; if contrast="props", set sigma=NA as default and it will be calculated based on mu and mu0 specified within the function.
dist
Whether the sample size is calculated for t-distributed test statistics (dist="tdist") or standard normally distributed test statistics (dist="zdist").
alpha
The pre-specified overall significance level, default=0.05.
mcs
The number of monte-carlo sample points to numerically approximate the power for a given sample size, refer to Equation (4.3) and Equation (4.5) in Dunnett and Tamhane (1992).
testcall
The applied Dunnett test procedure: "SD"=step-down Dunnett test; "SU"=step-up Dunnett test.