Usage
sampleN.noninf(alpha = 0.025, targetpower = 0.8, logscale = TRUE, margin,
theta0, CV, design = "2x2", robust = FALSE,
details = FALSE, print = TRUE, imax=100)
Arguments
alpha
Type I error probability, significance level. Defaults here to 0.025.
targetpower
Power to achieve at least. Must be >0 and
logscale
Should the data used on log-transformed or on original scale? TRUE or FALSE.
Defaults to TRUE.
margin
Non-inferiority margin.
In case of logscale=TRUE
it must be given as ratio, otherwise as diff. to 1.
Defaults to 0.8 if logscale=TRUE
or to -0.2 if logscale=FALSE
.
theta0
'True' or assumed bioequivalence ratio or difference.
In case of logscale=TRUE
it must be given as ratio,
otherwise as difference to 1. See examples.
Defaults to 0.95 if logscale=TRUE
or to 0.05 if logscale=FALSE
CV
Coefficient of variation as ratio.
In case of cross-over studies this is the within-subject CV,
in case of a parallel-group design the CV of the total variability.
design
Character string describing the study design.
See known.designs
for designs covered in this package. robust
Defaults to FALSE. With that value the usual degrees of freedom will be used.
Set to TRUE
will use the degrees of freedom according to the 'robust' evaluation
(aka Senn's basic estimator). These df are calculated as n-seq
.
See <
details
If TRUE the design characteristics and the steps during
sample size calculations will be shown.
Defaults to FALSE.
print
If TRUE (default) the function prints its results.
If FALSE only the data.frame with the results will be returned.
imax
Maximum number of steps in sample size search.
Defaults to 100. Adaption only in rare cases needed.