Learn R Programming

MARSS (version 3.2)

is.marssm: Model Objects

Description

These are model objects and utility functions for model objects in the package MARSS-package. Users would not normally work directly with these functions. is.marssm() ensures model consistency. MARSS.formname() translates a model list as passed in call to MARSS() into a marssm model object.

Usage

is.marssm(modelObj)

Arguments

modelObj
An object of class marssm.

Value

  • An object of class "marssm".
  • dataData supplied by user.
  • fixedA list with 8 matrices Z, A, R, B, U, Q, x0, V0.
  • freeA list with 8 matrices Z, A, R, B, U, Q, x0, V0.
  • X.namesA m length vector of names for the X states.
  • miss.valueSpecifies missing value representation. Default is NA
  • tinitxSpecifies whether the initial state (specified with x0 and V0) is at t=0 or t=1.

Details

A marssm object is an R representation of a MARSS model along with the data. Data for marssm() consists of multivariate time series data in which time is across columns and the n observed time series are in the n different rows. The MARSS model is [object Object],[object Object],[object Object] The marssm object describes this MARSS model but written in vec form: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] In the marssm object, f(t) + D(t)m, is the vec of a matrix M(t), so f_b(t)+D_b(t)b would be vec(B(t)). The estimated parameters are in the column vectors: b, u, q, z, a, r, p, and l. Each matrix M(t) is f(t)+D(t)m so is the sum of a fixed part f(t) and the linear combination, D(t), of the free (or estimated) part m. The vec form of the MARSS model is specified by 3D matrices for each f and D for each parameter: B, U, Q, Z, A, R, x0, V0. The number of columns in the D matrix for a parameter determines the number of estimated values for that parameter. The first dimension for f (fixed) and D (free) must be: [object Object],[object Object],[object Object],[object Object],[object Object] The third dimension of f (fixed) and D (free) is either 1 (if not time-varying) or TT (if time-varying). The second dimension of f (fixed) is always 1, while the second dimension of D (free) depends on how many values are being estimated for a matrix. It can be 0 (if the matrix is fixed) or up to the size of the matrix (if all elements are being estimated). Many different types of multivariate time series models can be rewritten in this form. Users however are not expected to write their MARSS model in this form. Instead, the main MARSS function calls helper functions of the form MARSS.formname to transform user inputs written in forms more familiar to the user into the vec form needed for the algorithms in the MARSS package. See the user guide (RShowDoc("UserGuide",package="MARSS")) for many examples.

See Also

MARSS, MARSS.marxss