Check the fit of Markov flexible parametric multi-state models against nonparametric estimates.
Computes both parametric and comparable Aalen-Johansen nonparametric estimates from a flexible paramrtric multi-state model, and returns them together in a tidy data frame. Only models w ith no covariates, or only factor covariates, are supported. If there are factor covariates, then the nonparametric estimates are computed for subgroups defined by combinations of the covariates.
ajfit_fmsm(x, maxt = NULL, newdata = NULL)
x |
Object returned by |
maxt |
Maximum time to compute parametric estimates to. |
newdata |
Data frame defining the subgroups to consider. This must have a column for each covariate in the model. If omitted, then all potential subgroups defined by combinations of factor covariates are included. Continuous covariates are not supported. |
Tidy data frame containing both Aalen-Johansen and parametric estimates of state occupancy over time, and by subgroup if subgroups are included.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.