Learn R Programming

ebmstate (version 0.1.5)

unique_paths: Find all possible paths until absorption from a given starting state

Description

unique_paths finds all possible sequences of states until absorption when the process has a tree-like structure.

Usage

unique_paths(from_state, tmat)

Value

A matrix where each column is a sequence of states taken by the process until absorption. There are as many columns as the number of possible paths until absorption.

Arguments

from_state

Initial state.

tmat

A transition matrix describing the states and transitions in the multi-state model, as can be obtained by running transMat. See argument trans in msprep (mstate package) for more detailed information.

Author

Rui Costa

Details

This function is used by the function probtrans_by_convolution. It is not meant to be called by the user.

See Also

probtrans_by_convolution; transMat.