Last chance! 50% off unlimited learning
Sale ends in
curerate(rho = 0, numreps, cureobs, curerx, medobs, medrx, acrate, probrx,
actime, futime, info, crits, alpha = 0.025)
info
.0.025
; currently, it has no effect on the calculations,
it is ignored in the current version of the software.CureRate
which has the following 22 componentscurerate
is used to calculate the power of weighted log-rank
tests in cure rate models.CR-package
, CureRate-class
,
showcr
, and show-methods
##---- Should be DIRECTLY executable !! ----
## Input Data
################
# rho - specifies the value of rho in the G-rho test (Harrington and Fleming, 1982).
# rho = 0 gives the logrank test, and rho = 1 the Peto-Peto Wilcoxon test
#(and rho = -1 the test discussed by Gray and Tsiatis, 1989).
rho = 0
numreps = 500
##cureobs - probability of cure on the observation arm of the study
cureobs = .359
##curerx - probability of cure on the treatment arm of the study
curerx = .459
##medobs - median survival among the non-cured on observation
medobs = .747
##medrx - median survival among the non-cured on treatment
medrx = .859
##acrate - rate at which patients accrue, combined over both
##observation and treatment arms of the study
acrate = 232
##probrx - probability of assignment to the treatment arm
probrx = .5
##actime - accrual duration
actime = c(3.3, 3.5, 3.8);
##futime - followup duration
futime = c(2.0, 2.5)
##info - vector of information times for the interim looks
##must be an increasing sequence in (0,1]
info = c( .35, .61, .86, 1.0)
##crits - vector of critical values corresponding to the
##interim analysis time points specified in info
crits = c(3.6128, 2.6506, 2.1894, 2.0536)#############################################################
### Log-rank test: rho=0 (default)
mycr<-curerate(rho,numreps,cureobs,curerx,medobs,medrx,acrate,
probrx,actime,futime,info,crits)
mycr ### (*)
show(mycr) ### same as above
showcr(mycr) ### same as above
showcr(mycr,full.result=TRUE)
showcr(mycr,indac=2,indfu=1)
showcr(mycr,indac=2:3,indfu=2:1)
showcr(mycr,indac=c(1,3),indfu=2)
show(mycr) ### same as (*) above
showcr(mycr) ### same as above
mycr ### same as above
### Peto & Peto modification of the Gehan-Wilcoxon test: rho=1
rho=1
mycr<-curerate(rho,numreps,cureobs,curerx,medobs,medrx,acrate,
probrx,actime,futime,info,crits)
mycr
Run the code above in your browser using DataLab