Learn R Programming

GUIgems (version 0.1)

generateParameterCovarianceMatrix: generate a template for parameter covariances

Description

This function simplifies generating the matrix of parameter covariances from a matrix of mean parameters.

Usage

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

Arguments

muM
a transition.structure of dimension \(N \times N\), whose components list the mean values for the parameters in the transitionFunctions.
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 list(State 1, State 2, ..., State N)

Value

a transition.structure of dimension \(N \times N\) of covariance matrices for the parameters.

See Also

transition.structure, generateParameterMatrix, simulateCohort