model.frame(MLEobj)
or model.frame(MODELobj)
, where MLEobj is a marssMLE
object output by a MARSS()
call and MODELobj is a marssMODEL
object in the model element of a marssMLE
object,
will return a data.frame with the data (y) and inputs/covariates (c and d elements) for a MARSS model in "marxss" form. See MARSS.marxss
. This is mainly a utility function to help with the broom
functions (tidy
, augment
and glance
).
# S3 method for marssMODEL
model.frame(formula, ...)
A marssMODEL
object.
Other arguments not used.
A data.frame witht the data and inputs (c and d) in a MARSS model in "marxss" form. See MARSS.marxss
.