Simulation of parametric survival model with an already-resampled dataset
surv_param_sim_pre_resampled(
object,
newdata.resampled,
newdata.orig = NULL,
censor.dur = NULL,
coef.var = TRUE,
na.warning = TRUE
)
A survreg
class object. Currently accept exponential,
lognormal, weibull, loglogistic, and gaussian distributions.
A required input, the already resampled dataset for simulation.
This dataset must have: (a) rep
variable indicating the #simulation groups, and (b) the same number of subjects per each rep
An optional input needed for calculating KM and HR for the observed data.
A two elements vector specifying duration of events censoring. Censoring time will be calculated with uniform distribution between two numbers. No censoring will be applied if NULL is provided.
Boolean specifying whether parametric bootstrap are performed on survival model coefficients, based on variance-covariance matrix. If FALSE, prediction interval only reflects inherent variability from survival events.
Boolean specifying whether warning will be shown if
newdata
contain subjects with missing model variables.
A survparamsim
object that contains the original survreg
class
object, newdata, and a data frame for predicted survival profiles.
See surv_param_sim()
for additional details.