fit_ends_mods_par {psm3mkv} | R Documentation |
Fits multiple parametric survival regressions, according to the distributions stipulated, to the multiple endpoints required in fitting partitioned survival analysis, clock forward and clock reset semi-markov models.
fit_ends_mods_par(
simdat,
cuttime = 0,
ppd.dist = c("exp", "weibullPH", "llogis", "lnorm", "gamma", "gompertz"),
ttp.dist = c("exp", "weibullPH", "llogis", "lnorm", "gamma", "gompertz"),
pfs.dist = c("exp", "weibullPH", "llogis", "lnorm", "gamma", "gompertz"),
os.dist = c("exp", "weibullPH", "llogis", "lnorm", "gamma", "gompertz"),
pps_cf.dist = c("exp", "weibullPH", "llogis", "lnorm", "gamma", "gompertz"),
pps_cr.dist = c("exp", "weibullPH", "llogis", "lnorm", "gamma", "gompertz"),
expvar = NA
)
simdat |
Dataset of patient level data. Must be a tibble with columns named:
Survival data for all other endpoints (time to progression, pre-progression death, post-progression survival) are derived from PFS and OS. |
cuttime |
Cut-off time for a two-piece model, equals zero for one-piece models. |
ppd.dist |
Vector of distributions (named per |
ttp.dist |
Vector of distributions (named per |
pfs.dist |
Vector of distributions (named per |
os.dist |
Vector of distributions (named per |
pps_cf.dist |
Vector of distributions (named per |
pps_cr.dist |
Vector of distributions (named per |
expvar |
Explanatory variable for modeling of PPS |
A list by endpoint, then distribution, each containing two components:
result: A list of class flexsurvreg containing information about the fitted model.
error: Any error message returned on fitting the regression (NULL indicates no error).
Spline modeling is handled by fit_ends_mods_spl()
bosonc <- create_dummydata("flexbosms")
fit_ends_mods_par(bosonc, expvar=bosonc$ttp.durn)