Skip to content

Commit

Permalink
Merge pull request #33 from TanguyBarthelemy/develop
Browse files Browse the repository at this point in the history
Update DESCRIPTION with [art]
  • Loading branch information
annasmyk authored Jul 12, 2024
2 parents 8983590 + 18ebd89 commit 33d777e
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 24 deletions.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Title: Seasonal Adjustment of High Frequency Data with 'JDemetra+ 3.x'
Version: 2.1.1
Authors@R: c(
person("Jean", "Palate", role = c("aut", "cre"),
email = "palatejean@gmail.com"))
email = "palatejean@gmail.com"),
person("Tanguy", "Barthelemy", role = c("ctb", "art"),
email ="tanguy.barthelemy@insee.fr"))
Description: R Interface to 'JDemetra+ 3.x' (<https://github.com/jdemetra>) time series analysis software. It provides functions for seasonal adjustment of high-frequency data displaying multiple, non integer periodicities. Pre-adjustment with extended airline model and Arima Model Based decomposition.
Depends:
R (>= 4.1.0)
Expand Down
20 changes: 14 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,28 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

* Update .jar files added (related to [v2.2.0](https://github.com/jdemetra/jdplus-incubator/releases/tag/v2.2.0))


## [2.1.0] - 2024-04-18

### Added

- New plots for `JDFractionalAirlineDecomposition` and `JDFractionalAirlineEstimation`
- Add documentation for plots and prints
- low-level functions for extended airline models (log/level, outliers, estimation)
* New plots for `JDFractionalAirlineDecomposition` and `JDFractionalAirlineEstimation`
* Add documentation for plots and prints
* low-level functions for extended airline models (log/level, outliers, estimation)

### Changed

- Update readme
- Update prints
* Update readme
* Update prints


## [2.0.0] - 2023-12-12


[Unreleased]: https://github.com/rjdverse/rjd3highfreq/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/rjdverse/rjd3highfreq/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/rjdverse/rjd3highfreq/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/rjdverse/rjd3highfreq/releases/tag/v2.0.0
10 changes: 4 additions & 6 deletions R/jd3_extendedairline.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ NULL
.extendedairline_spec<-function(periodicities, differencing=-1, ar=FALSE, toint=FALSE){

if (differencing == -1){
differencing = length(periodicities)
if (! ar) differencing=differencing + 1
differencing <- length(periodicities)
if (! ar) differencing<-differencing + 1

}

Expand Down Expand Up @@ -96,12 +96,10 @@ NULL
#'
#' @examples
.extended_airline_outliers<-function(jregarima, jspec, types=c("ao"), start=0, end=0, critical_value=0, max_outliers=30, max_round=30){
if (start != 0) start=start-1
if (end != 0) end=end-1
if (start != 0) start<-start-1
if (end != 0) end<-end-1
rslt <- .jcall("jdplus/highfreq/base/r/ExtendedAirlineProcessor", "Ljdplus/toolkit/base/api/math/matrices/Matrix;", "outliers",
jregarima, jspec, .jarray(types), as.integer(start), as.integer(end),
as.numeric(critical_value), as.integer(max_outliers), as.integer(max_round) )
return(rjd3toolkit::.jd2r_matrix(rslt)+1)
}


8 changes: 4 additions & 4 deletions R/jd3_fractionalairline.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ fractionalAirlineEstimation <- function(y,
y_time = NULL) {

# Input checks
mean = FALSE
mean <- FALSE
checkmate::assertNumeric(y, null.ok = FALSE)
checkmate::assertNumeric(criticalValue, len = 1, null.ok = FALSE)
checkmate::assertNumeric(precision, len = 1, null.ok = FALSE)
Expand Down Expand Up @@ -246,11 +246,11 @@ fractionalAirlineEstimation <- function(y,
if (nO > 0) {
regvar_outliers<-rep(NA,nX-nO)
for(j in 1:nX-nO) {
regvar_outliers[j]=paste("x-", j)}
regvar_outliers[j] <- paste("x-", j)}
for (j in 1:nO) {
regvar_outliers[nX-nO+j]<-o[[j]]$toString()}
regvar_outliers[nX-nO+j] <- o[[j]]$toString()}
return(regvar_outliers)
}else{
} else {
return(list())
}
}
Expand Down
26 changes: 24 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,32 @@ rjd3highfreq provides functions for seasonal adjustment of high-frequency data d

Running rjd3 packages requires **Java 17 or higher**. How to set up such a configuration in R is explained [here](https://jdemetra-new-documentation.netlify.app/#Rconfig)


### Latest release

To get the current stable version (from the latest release):

- From GitHub:

```{r, echo = TRUE, eval = FALSE}
# install.packages("remotes")
remotes::install_github("rjdverse/rjd3toolkit@*release")
remotes::install_github("rjdverse/rjd3sts@*release")
remotes::install_github("rjdverse/rjd3highfreq@*release")
```

- From [r-universe](https://rjdverse.r-universe.dev/rjd3highfreq):

```{r, echo = TRUE, eval = FALSE}
install.packages("rjd3highfreq", repos = c("https://rjdverse.r-universe.dev", "https://cloud.r-project.org"))
```


### Development version

You can install the development version of **rjd3highfreq** from [GitHub](https://github.com/) with:

```{r, eval = FALSE}
# Install development version from GitHub
```{r, echo = TRUE, eval = FALSE}
# install.packages("remotes")
remotes::install_github("rjdverse/rjd3highfreq")
```
Expand Down
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,31 @@ Running rjd3 packages requires **Java 17 or higher**. How to set up such
a configuration in R is explained
[here](https://jdemetra-new-documentation.netlify.app/#Rconfig)

### Latest release

To get the current stable version (from the latest release):

- From GitHub:

``` r
# install.packages("remotes")
remotes::install_github("rjdverse/rjd3toolkit@*release")
remotes::install_github("rjdverse/rjd3sts@*release")
remotes::install_github("rjdverse/rjd3highfreq@*release")
```

- From [r-universe](https://rjdverse.r-universe.dev/rjd3highfreq):

``` r
install.packages("rjd3highfreq", repos = c("https://rjdverse.r-universe.dev", "https://cloud.r-project.org"))
```

### Development version

You can install the development version of **rjd3highfreq** from
[GitHub](https://github.com/) with:

``` r
# Install development version from GitHub
# install.packages("remotes")
remotes::install_github("rjdverse/rjd3highfreq")
```
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions man/fractionalAirlineEstimation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<description>Usage: mvn -Pcopy-jars</description>

<properties>
<jdplus-incubator.version>2.1.1-SNAPSHOT</jdplus-incubator.version>
<jdplus-incubator.version>2.2.0</jdplus-incubator.version>
</properties>

<dependencies>
Expand Down

0 comments on commit 33d777e

Please sign in to comment.