Learn R Programming

MARSS (version 3.2)

parmat: Retrieve Parameter Matrix

Description

Function to return the parmater matrix with fixed and free elements given a model object (is.marssm) and the par element of a marss MLE object (is.marssMLE).

Usage

parmat(MLEobj, elem=c("B","U","Q","Z","A","R","x0","V0"), t=1)

Arguments

MLEobj
A marss MLE object
elem
The name (character string) of a parameter, e.g. "A".
t
The time index or third dimension of a 3D matrix

Value

  • The parameter matrix for element elem.

Details

parmat constructs a 2D parameter matrix from a marssm model object and par element of a marss MLE object. The equation for the vec-ed version of the matrix is marssm$fixed[[elem]] + marssm$free[[elem]] x marssMLE$par[[elem]]. This is then unvec-ed and the matrix returned for element elem.