Learn R Programming

MARSS (version 3.8)

coef.marssMLE: Coefficient function for MARSS MLE objects

Description

The MARSS fitting function, MARSS, outputs marssMLE objects. coef(marssMLE), where marssMLE is one's output from a MARSS call, will print out the estimated parameters. The default output is a list with the estimated parameters for each MARSS parameter, however coef can be altered using the type argument to output a vector of all the estimated values (type="vector") or a list with the full parameter matrix with the estimated and fixed elements (type="matrix").

Usage

## S3 method for class 'marssMLE':
coef(object, ..., type="list", form=NULL, what="par")

Arguments

object
A marssMLE object.
...
Other arguments for coef.
type
What to print. Default is "list". If you input type as a vector, coef returns a list of output. See examples.
  • "list"
{ A list of only the estimated values in each matrix. Each model matrix has it's own list element.} "vect

Value

  • A list of the estimated parameters for each model matrix.

item

  • form
  • what

code

marssMLE$marss

Examples

Run this code
dat = t(harborSeal)
  dat = dat[c(2,11),]
  MLEobj = MARSS(dat)
  
  coef(MLEobj)
  coef(MLEobj,type="vector")
  coef(MLEobj,type="matrix")
  #to retrieve just the Q matrix
  coef(MLEobj,type="matrix")$Q

Run the code above in your browser using DataLab