Learn R Programming

gems (version 1.0.0)

generateHazardMatrix: generate template for transition functions

Description

This function simplifies generating the matrix of transition functions.

Usage

generateHazardMatrix(statesNumber)

Arguments

statesNumber
the number of states to be considered.

Value

a transition.structure of dimension $N x N$, where $N$ is the number of states and with value "impossible" for all potential transitions.

References

Nello Blaser, Luisa Salazar Vizcaya, Janne Estill, Cindy Zahnd, Bindu Kalesan, Matthias Egger, Olivia Keiser, Thomas Gsponer (2015). gems: An R Package for Simulating from Disease Progression Models. Journal of Statistical Software, 64(10), 1-22. URL http://www.jstatsoft.org/v64/i10/.

See Also

transition.structure, simulateCohort