is.marssm
) and the par
element of a marss MLE object (is.marssMLE
).parmat(MLEobj, elem=c("B","U","Q","Z","A","R","x0","V0"), t=1)
elem
.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
.