cross_time.survstan | R Documentation |
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 survstan |
newdata1 |
a data frame containing the first set of explanatory variables |
newdata2 |
a data frame containing the second set of explanatory variables |
conf.level |
level of the confidence/credible intervals |
nboot |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.