generateParameterMatrix: generate a template for mean parameters

Description Usage Arguments Value Author(s) See Also

Description

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

Usage

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

Arguments

hf

a transition.structure of dimension N x 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 x N, whose components are lists of the right length for the parameters in the corresponding hazard function hf.

Author(s)

Luisa Salazar Vizcaya, Nello Blaser, Thomas Gsponer

See Also

transition.structure-class, simulateCohort


GUIgems documentation built on May 1, 2019, 8:19 p.m.