Computes the crossing survival times
## S3 method for class 'survstan' cross_time( object, newdata1, newdata2, conf.level = 0.95, nboot = 1000, cores = 1, ... )
object
: an object of class survstannewdata1
: a data frame containing the first set of explanatory variablesnewdata2
: a data frame containing the second set of explanatory variablesconf.level
: level of the confidence/credible intervalsnboot
: number of bootstrap samples (default nboot=1000).cores
: number of cores to be used in the bootstrap sampling; default is 1 core;...
: further arguments passed to or from other methods.the crossing survival time
library(survstan) data(ipass) fit <- ypreg(Surv(time, status)~arm, data=ipass, baseline = "weibull") summary(fit) newdata1 <- data.frame(arm=0) newdata2 <- data.frame(arm=1) tcross <- cross_time(fit, newdata1, newdata2, nboot = 10) tcross
Useful links