make_surv_methods | R Documentation |
These function are version of the survHE::make.surv()
function
from survHE. These are needed prior to blending.
make_surv(Surv, ...)
## S3 method for class 'survHE'
make_surv(Surv, t, nsim = 100, ...)
## S3 method for class 'flexsurvreg'
make_surv(Surv, t = NULL, nsim = 100, ...)
## S3 method for class 'inla'
make_surv(Surv, t = NULL, nsim = 100, ...)
## Default S3 method:
make_surv(Surv, t = NULL, nsim = 100, ...)
Surv |
survival analysis object |
... |
Additional arguments |
t |
Time points; vector |
nsim |
Number of simulations; integer |
Matrix of survival probabilities
library(survHE)
## trial data
data("TA174_FCR", package = "blendR")
## externally estimated data
data_sim <- ext_surv_sim(t_info = 144,
S_info = 0.05,
T_max = 180)
ext_Surv <- fit.models(formula = Surv(time, event) ~ 1,
data = data_sim,
distr = "exponential",
method = "hmc")
S_ext <- make_surv(ext_Surv, t = 1:100, nsim = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.