R/phreg.R
phreg_rct.Rd
Efficient implementation of the Lu-Tsiatis improvement using baseline covariates, extended to competing risks and recurrent events. Results almost equivalent with the speffSurv function of the speff2trial function in the survival case. A dynamic censoring augmentation regression is also computed to gain even more from the censoring augmentation. Furhter, we also deal with twostage randomizations. The function was implemented to deal with recurrent events (start,stop) + cluster, and more examples in vignette.
formula with 'Surv' or 'Event' outcome (see coxph
) and treatment (randomization 0/1)
data frame
to use for competing risks, recurrent events data
to use for competing risks, recurrent events data
augmentations used for randomization
augmentations used for censoring
formula for the randomization augmentation (~age+sex)
formula for the randomization augmentation (~age+sex)
formula for the censoring augmentation (~age+sex)
propensity score model, default is ~+1, assuming RCT study
if false will use propensity score adjustment
in case of twostage randomization, this variable is 1 for the treatment times,
use Kaplan-Meier for the censoring weights (stratified on treatment)
of confidence intervals
default is censoring model ~strata(treatment) but any model can be used to make censoring martingales
estimates propensity scores
possible fixed propoensity scores for randomizations
Additional arguments to phreg function
Lu, Tsiatis (2008), Improving the efficiency of the log-rank test using auxiliary covariates, Biometrika, 679--694 Scheike (2024), WIP, Two-stage randomization for recurrent events,
## Lu, Tsiatis simulation
data <- mets:::simLT(0.7,100)
dfactor(data) <- Z.f~Z
out <- phreg_rct(Surv(time,status)~Z.f,data=data,augmentR0=~X,augmentC=~factor(Z):X)
summary(out)
#> Estimate Std.Err 2.5% 97.5% P-value
#> Marginal-Z.f1 0.17228267 0.2727585 -0.3623143 0.7068796 0.5276282
#> R0_C:Z.f1 0.10449281 0.2236195 -0.3337933 0.5427790 0.6402999
#> R0_dynC:Z.f1 0.02207617 0.2193279 -0.4077986 0.4519509 0.9198253
#> attr(,"class")
#> [1] "summary.phreg_rct"