Learn R Programming

GUIgems (version 0.1)

generateParameterMatrix: generate a template for mean parameters

Description

This function simplifies generating the matrix of mean parameters from a matrix of transition functions.

Usage

generateParameterMatrix(hf,
  statesNamesFrom = (dimnames(hf@list.matrix)["from"])[[1]],
  statesNamesTo = statesNamesFrom)

Arguments

hf
a transition.structure of dimension \(N \times N\), where \(N\) is the number of states.
statesNamesFrom
- a list of names of states in the model. By default list(State 1, State 2, ..., State N)
statesNamesTo
- a list of names of states in the model. By default the same as statesNamesFrom

Value

a transition.structure of dimension \(N \times N\), whose components are lists of the right length for the parameters in the corresponding hazard function hf.

See Also

transition.structure-class, simulateCohort