
## export functions
export(
  CSEGriskfigure,
  CSEGtmufigure,
  MARSS,
  MARSSaic,
  MARSSboot,
  MARSShessian,
  MARSSinfo,
  MARSSinits,
  MARSSinnovationsboot,
  MARSSkem,
  MARSSkemcheck,
  MARSSkf,
  MARSShatyt,
  MARSSkfss,
  MARSSkfas,
  MARSSoptim,
  MARSSparamCIs,
  MARSSsimulate,
  MARSSFisherI,
  zscore,
  augment.marssMLE,
  tidy.marssMLE,
  glance.marssMLE
)

#these are part of base, but user could unattach them and then MARSS wouldn't work
import(stats)
import(utils)
import(graphics)

## register S3 methods
S3method(print, marssMODEL)
S3method(print, marssMLE)
S3method(plot, marssMLE)
S3method(logLik, marssMLE)
S3method(fitted, marssMLE)
S3method(summary, marssMODEL)
S3method(summary, marssMLE)
S3method(coef, marssMLE)
S3method(residuals, marssMLE)
S3method(model.frame, marssMODEL)
S3method(model.frame, marssMLE)

## Imports; I am only using these functions from these packages
importFrom(mvtnorm, rmvnorm)
importFrom(nlme, fdHess)
importFrom(KFAS, SSModel, SSMcustom, KFS)
importFrom("grDevices", "contourLines")
