Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


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×N, where N is the number of states and with value "impossible" for all potential transitions.

See Also

transition.structure-class, simulateCohort