-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNAMESPACE
More file actions
executable file
·420 lines (353 loc) · 9.08 KB
/
NAMESPACE
File metadata and controls
executable file
·420 lines (353 loc) · 9.08 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
import(methods, stats4, Matrix, PolynomF, zoo, xts, lagged, sarima) # BB
importFrom(gbutils,shiftright,shiftleft)
importFrom(gbutils,myouter)
importFrom(gbutils,nposargs,isargunnamed,isNA)
importFrom(graphics, boxplot, layout, par, points, lines, axis, mtext)
importFrom(utils, capture.output, str)
importFrom(stats, complete.cases, ARMAacf, Box.test, C, as.formula,
frequency, start, end, cycle, deltat, time, window, "window<-",
lm, na.exclude, nls, optim,
pchisq, pnorm, qnorm, rnorm, runif,
residuals, fitted, predict, printCoefmat, weighted.residuals,
ts, as.ts, monthplot)
importFrom(lubridate, minutes, hm, ymd, is.Date, weeks, days, period,
date, "date<-", as_datetime, as_date)
importFrom(BB, BBoptim)
import(sarima)
importFrom(mcompanion, chain_ind, mf_VSform, null_complement, sim_pcfilter)
importFrom(Rdpack, reprompt)
S3method(as.matrix, PeriodicMTS)
S3method(as.Date, PeriodicTimeSeries)
S3method(as.Date, Cyclic)
S3method(as.POSIXct, Cyclic)
S3method(as.POSIXct, PeriodicTimeSeries)
S3method(date, Cyclic)
S3method(date, PeriodicTimeSeries)
S3method(as_Pctime, Cyclic)
## S3method(as_Pctime, PeriodicTimeSeries)
S3method(format, Pctime)
S3method(str, Pctime)
S3method(seq, Pctime)
S3method(as.POSIXct, Pctime)
S3method("[", Pctime)
S3method("[[", Pctime)
S3method(cycle, Pctime)
# S3method(as.matrix, slMatrix)
# S3method(as.matrix, PeriodicAutocovariance)
# S3method(as.matrix, PeriodicAutocorrelation)
#S3method(head, PeriodicTimeSeries)
#S3method(tail, PeriodicTimeSeries)
# S3method("[", "sVector")
S3method(monthplot, PeriodicTimeSeries)
S3method(boxplot, PeriodicTimeSeries)
S3method(as.ts, PeriodicTimeSeries)
S3method(start, Cyclic)
S3method(end, Cyclic)
S3method(frequency, PeriodicTimeSeries)
S3method(deltat, PeriodicTimeSeries)
S3method(cycle, PeriodicTimeSeries)
S3method(time, PeriodicTimeSeries)
S3method(window, PeriodicTS)
S3method(window, PeriodicMTS)
S3method("window<-", PeriodicTS)
S3method("window<-", PeriodicMTS)
S3method(availStart, default)
S3method(availStart, matrix)
S3method(availEnd, default)
S3method(availEnd, matrix)
## zoo::na.trim
S3method(na.trim, PeriodicTS)
S3method(na.trim, PeriodicMTS)
S3method(residuals, FittedPeriodicArModel)
S3method(residuals, FittedPM)
S3method(fitted, FittedPM)
S3method(predict, FittedPM)
S3method(predict, SubsetPM)
exportMethods(
plot,
head,
tail,
"[", # are these necessary for primitive functions?
"[<-", # the methods (at least for "[<-") seem to work without this
# show, # 2019-06-10 for pkgdown, error in PeriodicBJFilter and PeriodicSPFilter
# didn't resolve the problem, so commenting out.
# Explicit show() is ok.
# TODO: could this be related to unexported show() methods from 'sarima'?
filterCoef,
filterOrder,
## nSeasons,
autocorrelations,
autocovariances,
sigmaSq,
as_date,
as_datetime,
coef,
residuals,
fitted,
vcov
)
# exportClassPattern("^[^\\.]")
exportClasses(
BareCycle,
BasicCycle,
BuiltinCycle,
Cyclic,
DayWeekCycle,
PartialCycle,
Every30MinutesCycle,
FittedPeriodicArModel,
FittedPeriodicArmaModel,
FiveDayWeekCycle, # deprecated
LegacyPeriodicFilterModel,
mcOptimCore,
ModelCycleSpec,
MonthYearCycle,
OpenCloseCycle,
PartialPeriodicAutocorrelations,
PeriodicArFilter,
PeriodicArmaFilter,
PeriodicArmaModel,
PeriodicArmaSpec,
PeriodicArModel,
PeriodicAutocorrelations,
PeriodicAutocovariances,
PeriodicBJFilter,
PeriodicFilterModel,
PeriodicIntegratedArmaSpec,
PeriodicInterceptSpec,
PeriodicMaFilter,
PeriodicMaModel,
PeriodicMonicFilterSpec,
PeriodicMTS,
PeriodicMTS_ts,
PeriodicMTS_zooreg,
PeriodicSPFilter,
PeriodicTimeSeries,
PeriodicTS,
PeriodicTS_ts,
PeriodicTS_zooreg,
PeriodicVector,
PiPeriodicArmaModel,
PiPeriodicArModel,
PiPeriodicMaModel,
QuarterYearCycle,
SamplePeriodicAutocorrelations,
SamplePeriodicAutocovariances,
SimpleCycle,
SiPeriodicArmaModel,
SiPeriodicArModel,
SiPeriodicMaModel,
SLTypeMatrix,
VirtualPeriodicArmaModel,
VirtualPeriodicArModel,
VirtualPeriodicAutocorrelations,
VirtualPeriodicAutocovarianceModel,
VirtualPeriodicAutocovariances,
VirtualPeriodicFilterModel,
VirtualPeriodicMaModel,
VirtualPeriodicMeanModel,
VirtualPeriodicModel,
VirtualPeriodicMonicFilter,
VirtualPeriodicStationaryModel,
VirtualPeriodicWhiteNoiseModel,
zoo,
zooreg,
SubsetPM
)
# exportPattern("^[[:alpha:]]+")
export(
# [.sVector
alg1
, alg1util
# , as.matrix.pcAcvf # S3 methods, declared above; no need to export
# , as.matrix.slMatrix # todo: document somehow?
# , fill.slMatrix
, fitPM # fitPerModel
, mC.ss
, sim_parCoef
, num2pcpar
, parcovmatlist
# , parModel
# , pc.acf
, pc.acf.parModel
, pcarma_acvf2model
# , pc.acrf
# , pc.acrftoacf
# , pc.acsum
# , pc.argmin
####, pc.arith.ceiling
####, pc.arith.floor
, pcarma_acvf_system
# , pc.arma.algBosh0
# , pc.arma.algBoshTh2
# , pc.arma.getpq
, pcarma_param_system
# , pc.arma.setpq
####, pc.arma.sim
# 09/02/2014 , pc.armafilter
# , pc.armaPQ
# , pc.armapq.aic
# , pc.armapq.bic
# , pc.armaPQ.index
# , pc.armaPQ.index.replace
# , pc.bcoeffs
# , pc.bU
# , pc.bvars
# , pc.ccf
# , pc.cconesidedsum
# , pc.ccsum
# , pc.est.arma
# , pc.est.arma.0
# , pc.f.index.replace
# , pc.fcoeffs
, pc.filter
# 09/02/2014 , pc.filter.arma
, pc.filter.xarma
# , pc.fit.arma.Bosh0
# , pc.fit.arma.BoshTh2
# , pc.fL
# , pc.fvars
, pc.hat.h
# , pc.internal.checksigma2
# , pc.internal.checkv2
, pcarma_acvf_lazy
, pcarma_h_lazy
, maxLag # pc.maxlag
, pcarma_prepare
, pcarma_tovec
, pcarma_unvec
, pcarma_h
## , pc.omitneg
# , pc.pacf
# , pc.pacrf
# , pc.par.argmin
# , pc.phis2
# , pc.pqapply
# , pc.printarmapqelem
, sim_pwn # 2016-03-29 was: pc.rand
# 09/02/2014 , pc.read.franses96
, pc.sdfactor # deprecated
, pc_sdfactor
, sim_pc # 2016-03-29 was: pc.sim
, pwn_McLeodLjungBox_test # pc.test.LjungBox
, periodic_acf1_test #pc.test.periodicity
# , pc.var
# , pc.vf.index # 2014-06-22
, pcacf_pwn_var # pc.wn.var.acrf
#, pcAcvf
, pcacfMat
, pcAr.ss
, pcAR2acf
, pcts
# , perFilterModel
, permean2intercept
, intercept2permean
# , perModel
, permodelmf
, pdSafeParOrder
, sim_parAcvf
####, rsum
# , siParModel
, slMatrix # now in 'lagged' but export it anyway !!
####, sumafr
, PeriodicVector # sVector
, toSeason
, toSeasonPair
, ttmatToslPairs
, ttTosl
# , which.minaic
, xx.ss
, pcTest
# , pcDst
# , pcDummy
# , pcX
, pclsdf
, pclspiar
, pi1ar2par
# , piParModel
, test_piar
, nVariables
, nTicks
#, nSeasons
, nCycles
, pcCycle
, BuiltinCycle
, unitSeason
, "unitSeason<-"
, unitCycle
, "unitCycle<-"
, allSeasons
, "allSeasons<-"
, seqSeasons
, Vec
, tsMatrix
, tsVector
, tsVec
, pcArray
, pctsArray
, pcMatrix
## , pcBoxplot
## , pcPlot
# , autocovariances # don't reexport while 'sarima' is in 'Depends'
# , autocorrelations
#, PeriodicFilterModel
#, acfbase2sl # now in lagged; for export see \docType{import} and
#, sl2vecacf # https://github.com/klutometis/roxygen/issues/408
#, sl2acfbase # for a way to avoid documenting if re-exported.
# (and maybe use lagged::sl2acfbase for re-export)
# However, expoting these seems an overkill (but TODO: think about it).
#, innovationVariances
, PeriodicArModel
, availStart
, availEnd
, modelCycle
, "modelCycle<-"
, meancovmat
, meanvarcheck
, Cyclic
## these don't get registered without exporting
## something related to base:as.Date being masked by zoo::as.Date?
## I am importing zoo and zoo::as.Date, hence calls from inside the package use that.
## However, if I don't reexport zoo::as.Date, then calls outside the package will be to ## base::as.Date.
## So, reexport zoo::as.Date().
## TODO: selectively import from zoo?
, as.Date
, as.Date.Cyclic
, as.Date.PeriodicTimeSeries
, as_Pctime
, date # lubridate::date
, "date<-" # lubridate::`date<-`
, date.Cyclic
, Pctime
, "[.Pctime"
, "[[.Pctime"
## reexports from sarima
, nSeasons
,
filterCoef,
filterOrder,
filterPoly,
filterPolyCoef,
autocovariances,
autocorrelations,
partialAutocovariances,
partialAutocorrelations,
partialVariances,
backwardPartialVariances,
partialCoefficients,
backwardPartialCoefficients,
sigmaSq,
modelCenter,
modelIntercept,
nUnitRoots,
isStationaryModel,
modelOrder,
modelPoly,
modelPolyCoef,
modelCoef
, fit_trigPAR_optim
, pcts_exdata
, na.trim # from zoo
, pcMean
, pcApply
)