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

View source: R/mstate.R

fmsmR Documentation

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

Description

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

Usage

fmsm(..., trans)

Arguments

...

Objects returned by flexsurvreg or flexsurvspline representing fitted survival models.

trans

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.

Value

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. 12, 2024, 7:23 a.m.