- alpha
Vector; contains one-sided significance level for each of the two TOSTs.
For one TOST, by convention mostly set to 0.05.
- targetpower
Power to achieve at least. Must be >0 and <1.
Typical values are 0.8 or 0.9.
- logscale
Should the data used on log-transformed or on original scale? TRUE (default) or FALSE.
- theta0
Vector; contains ‘true’ assumed T/R ratio for each of the two TOSTs.
In case of logscale=TRUE each element must be given as ratio,
otherwise as difference to 1. See examples.
Defaults to c(0.95, 0.95) if logscale=TRUE or to
c(0.05, 0.05) if logscale=FALSE.
- theta1
Vector; contains lower bioequivalence limit for each of the two TOSTs.
In case of logscale=TRUE it is given as ratio, otherwise as diff. to 1.
Defaults to c(0.8, 0.8) if logscale=TRUE or to c(-0.2, -0.2)
if logscale=FALSE.
- theta2
Vector; contains upper bioequivalence limit for each of the two TOSTs.
If not given theta2 will be calculated as 1/theta1 if logscale=TRUE
or as -theta1 if logscale=FALSE.
- CV
Vector of coefficient of variations (given as as ratio, e.g., 0.2 for 20%).
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.
In case of logscale=FALSE CV is assumed to be the respective standard
deviation.
- rho
Correlation between the two PK metrics (e.g., AUC and Cmax) under consideration.
This is defined as correlation between the estimator of the treatment difference of
PK metric one and the estimator of the treatment difference of PK metric two. Has to be within {--1, +1}.
- design
Character string describing the study design.
See known.designs() for designs covered in this package.
- setseed
Logical; if TRUE, the default, a seed of 1234567 is set.
- 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 degrees of freedom are calculated as n-seq.
See known.designs()$df2 for designs covered in this package.
Has only effect for higher-order crossover designs.
- print
If TRUE (default) the function prints its results.
If FALSE only the result list will be returned.
- details
If TRUE the design characteristics and the steps during
sample size calculations will be shown.
Defaults to FALSE.
- imax
Maximum number of steps in sample size search.
Defaults to 100.
- nsims
Number of studies to simulate. Defaults to 100,000 = 1E5.