50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

MARSS (version 3.4)

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, dims=NULL)

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
dims
Tells the function the dimension of elem. Must be a list with elem as the element name.

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.