#nboot is set low in these examples in order to run quickly
#normally nboot would be >1000 at least
dat = t(harborSealnomiss)
dat = dat[2:4,]
#maxit set low to speed up the example
kem = MARSS(dat, model=list(U="equal",Q=diag(.01,3)),
control=list(maxit=50))
hess.list = MARSSboot(kem, param.gen="hessian", nboot=5)
# (no missing values)
boot.list = MARSSboot(kem, output="all", sim="innovations", nboot=5)
# Parametric bootstrap CIs for data with missing values
dat = t(harborSealWA)
dat = dat[2:4,]
kem = MARSS(dat, model=list(Q=diag(.01,3)),
control=list(maxit=50))
boot.list = MARSSboot(kem, output="all", sim="parametric", nboot=5)
Run the code above in your browser using DataLab