Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8dc114e

Browse files
committed
Updates
1 parentf53442d commit8dc114e

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

‎DESCRIPTION‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: garma
22
Type: Package
33
Title: Fitting and Forecasting Gegenbauer ARMA Time Series Models
4-
Version: 0.9.20
5-
Date: 2024-07-31
4+
Version: 0.9.21
5+
Date: 2024-08-31
66
Authors@R: person("Richard", "Hunt", email = "maint@huntemail.id.au",
77
role = c("aut", "cre"))
88
Maintainer: Richard Hunt <maint@huntemail.id.au>

‎NEWS.md‎

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
#garma 0.9.21
2+
3+
- fixed bug in`gg_raw_pgram()`.
4+
15
#garma 0.9.20
26

37
- Log likelihood and AIC calc now include various constants to match with the AIC calculation of the "Forecast" package.
48
- Number of required optimisation packages has been reduced.
5-
- both garma() and ggbr_semipara() now support the`periods` parameter allowing the user to specify fixed periods instead of estimating them from the data.
9+
- both`garma()` and`ggbr_semipara()` now support the`periods` parameter allowing the user to specify fixed periods instead of estimating them from the data.
610
- The "xreg" parameter is now supported, although unlike "arima" this is a 2 stage process where a linear regression is first fit to the data and then a GARMA model is fit to the residuals of the regression.
711
- A number of optimisation methods have been removed as they rarely seemed to provide any benefit.
812

@@ -12,27 +16,28 @@ Fixes to the garma-package.rd file.
1216

1317
#garma 0.9.8
1418

15-
Version 0.9.8 includes an option to stop the automatic generation of fitted values for the garma function. This can take a while if the process is long,
16-
so this option may save time during the model fitting stage.
19+
Version 0.9.8 includes an option to stop the automatic generation of fitted values for the`garma()` function. This can take a
20+
while if the process is long,so this option may save time during the model fitting stage.
1721

1822
#garma 0.9.7
1923

20-
Version 0.9.7 adds the"tsdiag" function for garma models. The essential white noise test is set to be the Bartletts Tp test,
21-
since this is the only white noise test which has been theoretically justified on GARMA models. Also the"gof" function has
24+
Version 0.9.7 adds the`tsdiag()` function for garma models. The essential white noise test is set to be the Bartletts Tp test,
25+
since this is the only white noise test which has been theoretically justified on GARMA models. Also the`gof()` function has
2226
been added - this does the actual work of the Tp test, and in fact should work and should be valid for normal Arima models
2327
as well as GARMA models.
2428

25-
In the 'estimation' process - "garma" - there was a bug with the standard errors which resulted in Nan being returned for some parameters. This has been fixed.
26-
Further fixes have applied to the Whittle estimation of the standard errors and to the likelihood calculation.
29+
In the 'estimation' process -`garma()` - there was a bug with the standard errors which resulted in Nan being returned for some
30+
parameters. This has been fixed. Further fixes have applied to the Whittle estimation of the standard errors and to the likelihood
31+
calculation.
2732

2833
The fitted values/residuals were not being properly calculated as per 1-step ahead forecasts. This has been rectified
2934
(although for non-Gegenbauer ARIMA models there may still be some issues which will be looked at later).
3035

3136
The override of the ggplot function for garma models has been removed as this was not standard - the correct way to do this
32-
is'autoplot' so now the autoplot function has the ability to generate forecasts and plot them. If no titles and
37+
is`autoplot()` so now the autoplot function has the ability to generate forecasts and plot them. If no titles and
3338
subtitles are supplied, these routines will now generate some default ones for you.
3439

35-
A new optimisation method has been added for the"garma" function - this is a genetic algorithm from package GA.
40+
A new optimisation method has been added for the`garma()` function - this is a genetic algorithm from package GA.
3641
It can be used by specifying opt_method='ga'.
3742

3843
The "QML" method of estimation was producing too many errors and appeared to be converging to non-optimal solutions too often.
@@ -45,14 +50,14 @@ only - general integer differencing is now supported.
4550

4651
Version 0.9.6 implements new functions to more accurately reflect residuals, fitted values and predictions.
4752
Some changes have been made to the plotting routines to provide default titles and captions etc.
48-
Further some functions like AIC(),logLik(),vcov(), and coef() have been implemented, to provide
53+
Further some functions like`AIC()`,`logLik()`,`vcov()`, and`coef()` have been implemented, to provide
4954
greater similarity with the standard 'arima' functionality.
5055

5156
Finally given the trouble with forecasting with integer differencing > 1, there is a new restriction in the code to restrict
5257
the integer differencing to be either 0 or 1. This does not affect the fractional differencing component of the models.
5358
If the problems with forecasting higher integer differencing can be resolved, this restriction will be lifted in the future.
5459

55-
In particular please note that the'predict'/'forecast' function(s) now use the algorithm of (2009) Godet, F
60+
In particular please note that the`predict()`/`forecast()` function(s) now use the algorithm of (2009) Godet, F
5661
"Linear prediction of long-range dependent time series", ESAIM: PS 13 115-134. DOI: 10.1051/ps:2008015.
5762

5863
**WARNING**: forecasts generated by this version will be different from previous versions.

‎R/gg_raw_pgram.R‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ gg_raw_pgram <- function(x, k = 1) {
2222

2323
sp<- ggbr_semipara(x,k=k)
2424
annotate_df<-data.frame(x=numeric(0),y=numeric(0),label=character(0))
25-
for (factorinsp$ggbr_factors) {
25+
for (factorinsp) {
26+
idx<- which(ssx$freq==factor$freq)
2627
annotate_df<- rbind(
2728
annotate_df,
28-
data.frame(x=factor$f,y=ssx$spec[factor$f_idx],label= sprintf(" Period: %.2f",1.0/factor$f))
29+
data.frame(x=factor$freq,y=ssx$spec[idx],label= sprintf(" Period: %.2f",1.0/factor$freq))
2930
)
3031
}
3132

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp