If n
is NULL
(default), total sample size (2 arms combined) is computed. Otherwise, power is computed.
If outtype=1
(default), the computed value (sample size or power) is returned in a scalar or vector.
If outtype=2
, a data frame with sample sizes for each arm (n1
, n2
)is returned; if n
is not input as NULL
, a third variable, Power
, is added to the output data frame.
If outtype=3
, a data frame with is returned with the following columns:
nA vector with total samples size required for each event rate comparison specified
n1A vector of sample sizes for group 1 for each event rate comparison specified
n2A vector of sample sizes for group 2 for each event rate comparison specified
alphaAs input
sidedAs input
betaAs input; if n
is input, this is computed
PowerIf n=NULL
on input, this is 1-beta
; otherwise, the power is computed for each sample size input
sdAs input
sd2As input
delta1As input
delta0As input
sestandard error for estimate of difference in treatment group means