dat = t(harborSeal)
dat = dat[c(2,11),]
MLEobj = MARSS(dat)
#not standardized model residuals
residuals(MLEobj)$model.residuals
#standardized (by variance) model & state residuals
residuals(MLEobj)$std.residuals
Run the code above in your browser using DataLab