We will be using the MARSS package to fit univariate and multivariate state-space models.
The main function is MARSS()
:
fit <- MARSS(data, model=list())
data are a vector or a matrix with time going along the columns.
model list is a list with the structure of all the parameters.