sampleN.HVNTID(alpha = 0.05, targetpower = 0.8, theta0, theta1, theta2, CV,
design=c("2x2x4", "2x2x3"), nsims = 1e+05, nstart, imax=100,
print = TRUE, details = TRUE, setseed = TRUE)
length(CV) = 1
the same CV is assumed for Test and Reference.
If length(CV) = 2
the CV for Test must be given in CV[1] and for
Reference in CV[2].design="2x2x4"
.TRUE
(default) the function prints its results.
If FALSE
only the resulting dataframe will be returned.TRUE
, the default, the steps during sample size search are shown.
Moreover the details of the method settings are printed.set.seed(123456)
is issued if setseed=TRUE
, the default.nstart
.power.HVNTID
and power.NTIDFDA
, sampleN.NTIDFDA
for NTIDs with
low variability# using all defaults but CV
sampleN.HVNTID(CV=0.3)
# should give
# n=22 with an (empirical) power of 0.829700
# Test formulation with lower variability but same pooled CV
CVs <- CVp2CV(0.3, ratio=0.25)
sampleN.HVNTID(CV=CVs)
# should give (no distinct difference to example above)
# n=22 with an (empirical) power of 0.837520
Run the code above in your browser using DataLab