eEvents()
is used to calculate the expected number of events for a population with a time-to-event endpoint.
It is based on calculations demonstrated in Lachin and Foulkes (1986) and is fundamental in computations for the sample size method they propose.
Piecewise exponential survival and dropout rates are supported as well as piecewise uniform enrollment.
A stratified population is allowed.
Output is the expected number of events observed given a trial duration and the above rate parameters.eEvents(lambda=1, eta=0, gamma=1, R=1, S=NULL, T=2,
Tfinal=NULL, minfup=0, digits=4)
## S3 method for class 'eEvents':
print(x, digits=4,...)
gamma
. Length is the same as number of rows in gamma
. Note that the final enrollment period is extended as long as needed.lambda
, eta
and etaE
; this is NULL if there is a single event rate per stratum (exponential failure) or length of the number of rTfinal=NULL
, this is also the study duration.NULL
, this will be replaced with T
on output.sum(R)
from output value of R
) until Tfinal
.eEvents
returned from eEvents()
.eEvents()
and print.eEvents()
return an object of class eEvents
which contains the following items:eEvents()
produces an object of class eEvents
with the number of subjects and events for a set of pre-specified trial parameters, such as accrual duration and follow-up period. The underlying power calculation is based on Lachin and Foulkes (1986) method for proportional hazards assuming a fixed underlying hazard ratio between 2 treatment groups. The method has been extended here to enable designs to test non-inferiority. Piecewise constant enrollment and failure rates are assumed and a stratified population is allowed. See also nSurvival
for other Lachin and Foulkes (1986) methods assuming a constant hazard difference or exponential enrollment rate.
print.eEvents()
formats the output for an object of class eEvents
and returns the input value.gsDesign
, gsHR
, nSurvival
# 3 enrollment periods, 3 piecewise exponential failure rates
eEvents(lambda=c(.05,.02,.01), eta=.01, gamma=c(5,10,20),
R=c(2,1,2), S=c(1,1), T=20)
# control group for example from Berstein and Lagakos (1978)
lamC<-c(1,.8,.5)
n<-eEvents(lambda=matrix(c(lamC,lamC*2/3),ncol=6), eta=0,
gamma=matrix(.5,ncol=6), R=2, T=4)
Run the code above in your browser using DataLab