temporal_disaggregation: Temporal Disaggregation of a Time Series by Regression Models

View source: R/tempdisagg.R

temporal_disaggregationR Documentation

Temporal Disaggregation of a Time Series by Regression Models

Description

Perform temporal disaggregation of low-frequency to high-frequency time series by regression models. The implemented methods include Chow-Lin, Fernandez, Litterman and some variants of these algorithms.

Usage

temporal_disaggregation(
  series,
  constant = TRUE,
  trend = FALSE,
  indicators = NULL,
  model = c("Ar1", "Rw", "RwAr1"),
  freq = 4L,
  average = FALSE,
  rho = 0,
  rho.fixed = FALSE,
  rho.truncated = 0,
  zeroinitialization = FALSE,
  diffuse.algorithm = c("SqrtDiffuse", "Diffuse", "Augmented"),
  diffuse.regressors = FALSE,
  nbcsts = 0L,
  nfcsts = 0L
)

Arguments

series

A low-frequency time series to be disaggregated. It must be a "ts" object.

constant

Boolean. Indicates whether a constant term is included in the model. The default is TRUE. Note that this argument is used only with model = "Ar1" when zeroinitialization = FALSE (default). For additional information, see the Details section or the package vignette.

trend

Boolean. Indicates whether a linear trend is included in the model. The default is FALSE.

indicators

One or more high-frequency indicator series used in the temporal disaggregation. If NULL (the default), no indicator is used. When provided, the argument must be a "ts" object or a list of "ts" objects.

model

A character string specifying the model of the error term at the disaggregated level. The options are: "Ar1" (Chow Lin, the default), "Rw" (Fernandez), and "RwAr1" (Litterman).

freq

An integer giving the annual frequency of the disaggregated series. This argument is ignored when one or more indicator series is provided.

average

Boolean. Indicates whether an average conversion should be considered. The default is FALSE, corresponding to additive conversion.

rho

A numeric value giving the (initial) value of the autoregressive parameter. This argument is used only for "Ar1" and "RwAr1" models.

rho.fixed

Boolean. Specifies whether the supplied value of rho is fixed. The default is FALSE, which indicates that rho is estimated.

rho.truncated

A numeric value defining the lower bound of the admissible range for rho. The evaluation range is ⁠[rho.truncated, 1[⁠.

zeroinitialization

Boolean. If TRUE, the initial values of the autoregressive model are set to zero. The default is FALSE.

diffuse.algorithm

A character string specifying the algorithm used for diffuse initialization. The default is "SqrtDiffuse". Other options are: "Diffuse" and "Augmented".

diffuse.regressors

Boolean. Indicates whether the coefficients of the regression model are treated as diffuse (TRUE) or as fixed unknown (FALSE, the default).

nbcsts

An integer specifying the number of backcast periods. This argument is ignored when one or more indicator series is provided.

nfcsts

An integer specifying the number of forecast periods. This argument is ignored when one or more indicator series is provided.

Details

The Chow-Lin, Fernandez and Litterman methods are estimated using an equivalent state-space representation of the underlying model. While this approach is mathematically equivalent to the classical matrix formulation, the parametrization differs slightly.

For the Fernandez and Litterman methods, a diffuse initialization of the states is used by default. As a result, a constant is implicitly included and absorbed into the initial state vector. The high-frequency estimates are therefore identical to those obtained from the classical formulation with a constant term, even though the latter does not appear explicitly in the output.

To recover the usual parametrization and obtain an explicit estimate of the constant, set zeroinitialization = TRUE together with constant = TRUE.

Value

An object of class "JD3_TEMPDISAGG_RSLTS" is returned. The following are returned as a list:

  • regression ⁠[[1]]⁠ regression coefficients;

  • estimation ⁠[[2]]⁠ disaggregated time series and standard errors, regression effects, smoothing part, parameter and residuals;

  • likelihood ⁠[[3]]⁠ likelihood statistics.

Vignette

For more information on the method, its arguments, and the other methods available in the package, see the package vignette:

See Also

temporal_interpolation() for interpolation,

temporal_disaggregation_raw() for temporal disaggregation of atypical frequency series,

temporal_interpolation_raw() for interpolation of atypical frequency series

Examples


# Chow-lin with a monthly indicator
Y <- rjd3toolkit::aggregate(rjd3toolkit::Retail$RetailSalesTotal, 1)
x <- rjd3toolkit::Retail$FoodAndBeverageStores
td <- temporal_disaggregation(Y, indicators = x)
td$estimation$disagg

# Fernandez with and without a quarterly indicator
data("qna_data")
Y <- ts(qna_data$B1G_Y_data[,"B1G_FF"], frequency = 1, start = c(2009,1))
x <- ts(qna_data$TURN_Q_data[,"TURN_INDEX_FF"], frequency = 4, start = c(2009,1))
td1 <- temporal_disaggregation(Y, indicators = x, model = "Rw")
td1$estimation$disagg

td2 <- temporal_disaggregation(Y, model = "Rw", nfcsts = 6)
td2$estimation$disagg

# Chow-lin applied to index series
Y_index <- 100 * Y / Y[1]
x_index <- 100 * x / x[1]
td3 <- temporal_disaggregation(Y, indicators = x, average = TRUE)
td3$estimation$disagg


rjd3bench documentation built on Nov. 26, 2026, 5:08 p.m.