This computes Aalen-Johansen estimates of the probability of occupying each
state at a series of times, using
ajfit. The equivalent
estimates from the parametric model are then produced using
p_flexsurvmix, and concatenated with the nonparametric
estimates to form a tidy data frame. This data frame can then simply be
ajfit_flexsurvmix(x, maxt = NULL, startname = "Start", B = NULL)
Fitted model returned by
Maximum time to produce parametric estimates for. By default this is the maximum event time in the data, the maximum time we have nonparametric estimates for.
Label to give the state corresponding to "no event happened
yet". By default this is
Number of simulation replications to use to calculate a confidence
interval for the parametric estimates in
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.