-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNAMESPACE
88 lines (80 loc) · 2.06 KB
/
NAMESPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
## export functions
export(
CSEGriskfigure,
CSEGtmufigure,
MARSS,
MARSSaic,
MARSSboot,
MARSShessian,
MARSSinfo,
MARSSinits,
MARSSinnovationsboot,
MARSSkem,
MARSSkemcheck,
MARSSkf,
MARSShatyt,
MARSSkfss,
MARSSkfas,
MARSSoptim,
MARSSparamCIs,
MARSSresiduals,
MARSSsimulate,
MARSSFisherI,
zscore,
ldiag,
autoplot.marssMLE,
autoplot.marssPredict,
accuracy.marssMLE,
accuracy.marssPredict,
forecast.marssMLE,
glance.marssMLE,
tidy.marssMLE
)
#these are part of base, but user could unattach them and then MARSS wouldn't work
import(stats)
import(utils)
import(graphics)
## Imports; I am only using these functions from these packages
importFrom(mvtnorm, rmvnorm)
importFrom(nlme, fdHess)
importFrom(KFAS, SSModel, SSMcustom, KFS)
importFrom("grDevices", "contourLines")
## register S3 methods
S3method(print, marssMODEL)
S3method(print, marssMLE)
S3method(print, marssPredict)
S3method(plot, marssMLE)
S3method(plot, marssPredict)
S3method(plot, marssResiduals)
S3method(stats::predict, 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)
S3method(simulate, marssMLE)
S3method(toLatex, marssMODEL)
S3method(toLatex, marssMLE)
S3method(stats::tsSmooth, marssMLE)
# Declare these methods if the user has the package
if(getRversion() >= "3.6.0") {
S3method(broom::glance, marssMLE)
S3method(broom::tidy, marssMLE)
S3method(ggplot2::autoplot, marssMLE)
S3method(ggplot2::autoplot, marssPredict)
S3method(ggplot2::autoplot, marssResiduals)
S3method(forecast::accuracy, marssMLE)
S3method(forecast::accuracy, marssPredict)
S3method(forecast::forecast, marssMLE)
}
# Another approach for the broom and ggplot2 S3 methods is
# to put broom and ggplot2 in imports
# importFrom(broom, glance, tidy)
# importFrom(ggplot2, autoplot)
# S3method(augment, marssMLE)
# S3method(glance, marssMLE)
# S3method(tidy, marssMLE)
# S3method(autoplot, marssMLE)