print.marssMLE | R Documentation |
MARSS()
outputs marssMLE
objects. print(MLEobj)
, where MLEobj
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.
## S3 method for class 'marssMLE'
print(x, digits = max(3, getOption("digits")-4), ...,
what = "fit", form = NULL, silent = FALSE)
x |
A |
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.
|
form |
By default, print uses the model form specified in the call to |
silent |
If TRUE, do not print just return the object. If print call is assigned, nothing will be printed. See examples. If |
A print out of information. If you assign the print call to a value, then you can reference the output. See the examples.
Eli Holmes, NOAA, Seattle, USA.
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.