deseats-package {deseats}R Documentation

Deseasonalize Time Series

Description

A library of decomposition methods for equidistant time series with trend and seasonality.

Details

deseats is an R package for the decomposition of equidistant time series with trend and seasonality. First and foremost, an own algorithm for bandwidth selection in locally weighted regression of such time series (with short-range dependence) is implemented that is based on both the algorithms by Feng (2013) and Feng et al. (2020). For comparison, a simplified version of the BV4.1 (Berlin Procedure 4.1, Speth, 2004), is implemented as well that allows to implement the BV4.1 base model (trend component + seasonality component + irregular component) without any of the additional BV4.1 components (such as the calendar component). Permission to include the BV4.1 base model procedure was kindly provided by the Federal Statistical Office of Germany.

Main Functions

The main functions of the package are:

deseats:

locally weighted regression with automatically selected bandwidth for decomposition,

BV4.1:

BV4.1 base model for decomposition,

lm_decomp:

ordinary least squares for decomposition,

llin_decomp:

local linear regression for decomposition,

ma_decomp:

moving averages for decomposition,

hamilton_filter:

the time series filter by Hamilton.

Datasets

The package includes a few datasets. Follow the corresponding links to the documentation of the datasets to find additional information including the sources.

CIVLABOR:

civilian labor force level in the USA.

CONSUMPTION:

real final consumption expenditure for Australia.

COVID:

new COVID-19 cases in Germany.

DEATHS:

recorded number of deaths in Germany.

ENERGY:

production and distribution of electricity, gas, steam and air conditioning in Germany.

EXPENDITURES:

consumption expenditures in the USA.

GDP:

GDP of the USA.

HOUSES:

new one family houses sold in the USA.

LIVEBIRTHS:

recorded number of livebirths in Germany.

NOLABORFORCE:

number of persons in the USA not belonging to the labor force.

RAINFALL:

average amount of rain in Germany.

RETAIL:

Retail sale volume in Germany.

SAVINGS:

savings of private households in Germany.

SUNSHINE:

average hours of sunshine in Germany.

TEMPERATURE:

average temperature in Germany.

License

The package is distributed under the General Public License v3 ([GPL-3](https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3))).

Author(s)

References


[Package deseats version 1.1.0 Index]