Learn R Programming

MARSS (version 3.8)

print.marssMLE: Printing functions for MARSS MLE objects

Description

The MARSS fitting function, MARSS, outputs marssMLE objects. print(marssMLE), where marssMLE is a marssMLE object, will print out information on the fit. However, print can be used to print a variety of information (residuals, smoothed states, imputed missing values, etc) from a marssMLE object using the what argument in the print call.

Usage

## S3 method for class 'marssMLE':
print(x, digits = max(3, getOption("digits")-4), ..., what="fit", form=NULL, silent=FALSE)

Arguments

x
A marssMLE object.
digits
Number of digits for printing.
...
Other arguments for print.
what
What to print. Default is "fit". If you input what as a vector, print returns a list. See examples.
  • "model"
{ The model parameters with names for the estimted parameters. The output is customized by the form of the model that was fi

Value

  • A print out of information. If you assign the print call to a value, then you can reference the output. See the examples.

item

  • form
  • silent

code

what="fit"

Examples

Run this code
dat = t(harborSeal)
  dat = dat[c(2,11),]
  MLEobj = MARSS(dat)
  
  print(MLEobj)
  
  print(MLEobj,what="model")
  
  print(MLEobj,what="par")
  
  #silent doesn't mean silent unless the print output is assigned
  print(MLEobj,what="paramvector", silent=TRUE)
  tmp=print(MLEobj,what="paramvector", silent=TRUE)
  #silent means some info on what you are printing is shown whether
  #or not the print output is assigned
  print(MLEobj,what="paramvector", silent=FALSE)
  tmp=print(MLEobj,what="paramvector", silent=FALSE)
  
  cis=print(MLEobj,what="states.cis")
  cis$up95CI
  
  vars=print(MLEobj, what=c("R","Q"))

Run the code above in your browser using DataLab