Learn R Programming

GUIgems (version 0.1)

generateHazardMatrix: generate template for transition functions

Description

This function simplifies generating the matrix of transition functions.

Usage

generateHazardMatrix(statesNumber, statesNamesFrom = paste("State",
  1:statesNumber), statesNamesTo = statesNamesFrom)

Arguments

statesNumber
the number of states to be considered.
statesNamesFrom
names of the states in the model.
statesNamesTo
names of the states in the model.

Value

a transition.structure of dimension \(N \times N\), where \(N\) is the number of states and with value "impossible" for all potential transitions.

See Also

transition.structure-class, simulateCohort