Learn R Programming

gems (version 0.9.5)

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)

Arguments

hf
a transition.structure of dimension $N \times N$, where $N$ is the number of states.

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