Returns the event probabilities for specified parameters at given time vector.
getEventProbabilities(
time,
...,
accrualTime = C_ACCRUAL_TIME_DEFAULT,
accrualIntensity = C_ACCRUAL_INTENSITY_DEFAULT,
kappa = 1,
piecewiseSurvivalTime = NA_real_,
lambda2 = NA_real_,
lambda1 = NA_real_,
allocationRatioPlanned = 1,
hazardRatio = NA_real_,
dropoutRate1 = C_DROP_OUT_RATE_1_DEFAULT,
dropoutRate2 = C_DROP_OUT_RATE_2_DEFAULT,
dropoutTime = C_DROP_OUT_TIME_DEFAULT,
maxNumberOfSubjects = NA_real_
)
A numeric vector with time values.
Ensures that all arguments are be named and that a warning will be displayed if unknown arguments are passed.
The assumed accrual time intervals for the study, default is
c(0, 12)
(see details).
A vector of accrual intensities, default is the relative
intensity 0.1
(see details).
The shape parameter of the Weibull distribution, default is 1
.
The Weibull distribution cannot be used for the piecewise definition of the
survival time distribution.
Note that the parameters shape
and scale
in Weibull
are equivalent to kappa
and 1 / lambda
, respectively, in rpact.
A vector that specifies the time intervals for the piecewise definition of the exponential survival time cumulative distribution function (see details).
The assumed hazard rate in the reference group, there is no default. lambda2 can also be used to define piecewise exponentially distributed survival times (see details).
The assumed hazard rate in the treatment group, there is no default. lambda1 can also be used to define piecewise exponentially distributed survival times (see details).
The planned allocation ratio, default is 1
.
If allocationRatioPlanned = 0
is entered, the optimal allocation ratio yielding the
smallest number of subjects is determined.
The vector of hazard ratios under consideration. If the event or hazard rates in both treatment groups are defined, the hazard ratio needs not to be specified as it is calculated.
The assumed drop-out rate in the treatment group, default is 0
.
The assumed drop-out rate in the control group, default is 0
.
The assumed time for drop-out rates in the control and the
treatment group, default is 12
.
If maxNumberOfSubjects > 0
is specified,
the end of accrual at specified accrualIntensity
for the specified number of subjects is determined or
accrualIntensity
is calculated at fixed end of accrual.
Returns a EventProbabilities
object.
For details of the parameters see getSampleSizeSurvival
.