
## export functions
export(
  CSEGriskfigure,
  CSEGtmufigure,
  MARSS,
  MARSSaic,
  MARSSboot,
  MARSShessian,
  MARSShessian.backtrans,
  MARSSinfo,
  MARSSinits,
  MARSSinnovationsboot,
  MARSSkem,
  MARSSkemcheck,
  MARSSkf,
  MARSSkfss,
  MARSSkfas,
  MARSSmcinit,
  MARSSoptim,
  MARSSparamCIs,
  MARSSsimulate
)

#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(summary, marssMODEL)
S3method(toLatex, marssMODEL)
S3method(print, marssMLE)
S3method(summary, marssMLE)
S3method(coef, marssMLE)
S3method(residuals, marssMLE)
S3method(predict, marssMLE)

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