Learn R Programming

sectorgap (version 0.1.0)

aggregate_gap: Output gap contributions

Description

Computes chain aggregated output gap contributions.

Usage

aggregate_gap(
  tsl_p,
  tsl_t,
  tsl_g,
  idx,
  error_name = "gap_error",
  idx_neg = NULL,
  previous_year = TRUE
)

Value

A multiple time series object containing the contributions.

Arguments

tsl_p

time series list with prices

tsl_t

time series list with trends

tsl_g

time series list with gaps

idx

index of aggregate

error_name

character string with name for aggregation error

idx_neg

index of negative sub sectors

previous_year

boolean indicating if previous year prices should be used instead of pervious period prices