fmsm: Construct a multi-state model from a set of parametric...

Description Usage Arguments Value

View source: R/mstate.R


Construct a multi-state model from a set of parametric survival models


fmsm(..., trans)



Objects returned by flexsurvreg or flexsurvspline representing fitted survival models.


A matrix of integers specifying which models correspond to which transitions. The r,s entry is i if the ith argument specified in ... is the model for the state r to state s transition. The entry should be NA if the transition is disallowed.


A list containing the objects given in ..., and with attributes "trans" and "statenames" defining the transition structure matrix and state names, and with list components named to describe the transitions they correspond to. If any of the arguments in ... are named, then these are used to define the transition names, otherwise default names are chosen based on the state names.

flexsurv documentation built on Sept. 13, 2021, 5:07 p.m.