prob_pps_cf {psm3mkv} | R Documentation |
Calculate probability of post progression survival under the state transition clock forward model
Description
Calculates probability of post progression survival at a given time from progression (vectorized). This probability is from the state transition clock forward model, according to the given statistical distributions and parameters.
Usage
prob_pps_cf(ttptimes, ppstimes, dpam)
Arguments
ttptimes |
Time (numeric and vectorized) from progression - not time from baseline. |
ppstimes |
Time (numeric and vectorized) of progression |
dpam |
List of survival regressions for model endpoints. This must include post progression survival calculated under the clock forward state transition model. |
Value
Vector of the mean probabilities of post-progression survival at each PPS time, averaged over TTP times.
Examples
bosonc <- create_dummydata("flexbosms")
fits <- fit_ends_mods_spl(bosonc)
# Pick out best distribution according to min AIC
params <- list(
ppd = find_bestfit(fits$ppd, "aic")$fit,
ttp = find_bestfit(fits$ttp, "aic")$fit,
pfs = find_bestfit(fits$pfs, "aic")$fit,
os = find_bestfit(fits$os, "aic")$fit,
pps_cf = find_bestfit(fits$pps_cf, "aic")$fit,
pps_cr = find_bestfit(fits$pps_cr, "aic")$fit
)
prob_pps_cf(0:100, 0:100, params)
[Package psm3mkv version 0.3.2 Index]