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

fmsm {flexsurv} | R 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.

[Package flexsurv version 2.1 Index]