Learn R Programming

⚠️There's a newer version (0.2.8) of this package.Take me there.

RJDemetra

RJDemetra is an R interface to JDemetra+, the seasonal adjustment software officially recommended to the members of the European Statistical System (ESS) and the European System of Central Banks. JDemetra+ implements the two leading seasonal adjustment methods TRAMO/SEATS+ and X-12ARIMA/X-13ARIMA-SEATS.

Besides seasonal adjustment, JDemetra+ bundles other time series models that are useful in the production or analysis of economic statistics, including for instance outlier detection, nowcasting, temporal disaggregation or benchmarking.

For more details on the JDemetra+ software see https://github.com/jdemetra/jdemetra-app.

RJDemetra offers full access to all options and outputs of JDemetra+.

Installation

RJDemetra relies on the rJava package and Java SE version between 8 and 15 is required.

# Install release version from CRAN
install.packages("RJDemetra")

# Install development version from GitHub
# install.packages("devtools")
devtools::install_github("jdemetra/rjdemetra")

If you have troubles with the installation, check the installation manual.

Basic example

To seasonally adjust a time series with a pre-defined specification you can either use the x13() function for the X-13ARIMA method or the tramoseats() function for the TRAMO-SEATS method.

library(RJDemetra)
myseries <- ipi_c_eu[, "FR"]
x13_model <- x13(myseries) # X-13ARIMA method
ts_model <- tramoseats(myseries) # TRAMO-SEATS method

# Basic plot with the original series, the trend and the SA series
plot(x13_model, type_chart = "sa-trend")
# S-I ratio
plot(x13_model$decomposition)

Copy Link

Version

Install

install.packages('RJDemetra')

Monthly Downloads

536

Version

0.2.6

License

EUPL

Issues

Pull Requests

Stars

Forks

Maintainer

Alain Quartier-la-Tente

Last Published

March 19th, 2024

Functions in RJDemetra (0.2.6)

save_workspace

Save a workspace
regarima

RegARIMA model, pre-adjustment in X13 and TRAMO-SEATS
regarima_spec_x13

RegARIMA model specification: the pre-adjustment in X13
regarima_spec_tramoseats

RegARIMA model specification, pre-adjustment in TRAMO-SEATS
save_spec

Saving and loading a model specification, SA and pre-adjustment in X13 and TRAMO-SEATS
specification

Access a model specification, a SA or a pre-adjustment model in X13 and TRAMO-SEATS
new_workspace

Create a workspace or a multi-processing
plot

Plotting regarima, decomposition or final results of a SA
x13

Seasonal Adjustment with X13-ARIMA
x13_spec

X-13ARIMA model specification, SA/X13
load_workspace

Load a 'JDemetra+' workspace
jSA

Functions around 'jSA' objects
user_defined_variables

Display a list of all the available output objects (series, parameters, diagnostics)
tramoseats_spec

TRAMO-SEATS model specification
tramoseats

Seasonal Adjustment with TRAMO-SEATS
count

Count the number of objects inside a workspace or multiprocessing
get_ts

Get the input raw time series
get_model

Get the seasonally adjusted model from a workspace
get_position

Get the position of an object
get_object

Get objects inside a workspace or multiprocessing
add_sa_item

Add a seasonally adjusted series to a multi-processing
compute

Compute a workspace multi-processing(s)
ipi_c_eu

Industrial Production Indices in manufacturing industry in the European Union
get_name

Get the Java name of a multiprocessing or a sa_item
get_all_names

Get the Java name of all the contained object