Skip to contents

Chain-linking of volume indices. chain_link() links sub-annual (quarterly or monthly) volume indices with the annual overlap ("ao") or the one-quarter overlap ("oqo") technique; annual_chain() chains annual links.

Usage

chain_link(
  vo,
  cp = NULL,
  method = c("ao", "oqo"),
  base_year = NULL,
  output = c("index", "measure", "both")
)

annual_chain(
  vo,
  cp = NULL,
  base_year = NULL,
  output = c("index", "measure", "both")
)

Arguments

vo

Volume indices (ts or mts):

  • method = "ao": volume indices with the average of the previous year = 100 (output of cp_pi2vol() or laspeyres() with the default reference_freq = 1);

  • method = "oqo": volume indices with the overlap period of the previous year (its last quarter or month, valued at the average prices of the previous year) = 100: see chain_laspeyres(), which builds them as in the manual;

  • annual_chain(): annual or sub-annual indices with the previous year = 100 (sub-annual indices are averaged by year).

cp

Current prices, optional (same number of variables as vo). Needed for output = "measure" or "both". It must cover the base year.

method

Chain-linking technique: "ao" for annual overlap, "oqo" for one-quarter overlap (for monthly series, the overlap period is the last month of the year).

base_year

Reference year (index = 100). By default, the year before the start of vo (or the first year of cp, if later).

output

Chain index (the default), chain volume measure (in monetary terms, i.e. the index times the base-year current prices) or both.

Value

A ts (or mts). With output = "both", the columns are the indices then the measures of each variable.

Details

With \(v_t\) the volume index of period \(t\) (year \(y(t)\)) over the reference of the previous year, the annual link of year \(y\) is \(\lambda_y = \bar{v}_y / 100\) (annual average, "ao" and annual_chain()) or \(\lambda_y = v_{y,f} / 100\) (overlap period, the last one of the year, "oqo"). With the reference year \(b\), the chain level of year \(y\) is \(\Lambda_y = \prod_{k=b+1}^{y} \lambda_k\) (\(\Lambda_b = 1\)) and the chain index is $$I_t = \Lambda_{y(t)-1}\, v_t$$ for sub-annual series (chain_link()) and \(I_y = 100\, \Lambda_y\) for annual series (annual_chain()). The chain volume measure is \(I_t\, cp_b / (100 f)\), with \(cp_b\) the annual current prices of the reference year and \(f\) the frequency (1 for annual_chain()). To compute the volume indices of a total from its components, see chain_laspeyres().

References

International Monetary Fund (2018), Quarterly National Accounts Manual (2017 Edition), chapter 8 "Price and Volume Measures", Washington, DC. doi:10.5089/9781475589870.069 .

Examples

# Annual overlap: volume indices over the previous year
vo <- cp_pi2vol(imf_cp, imf_pi)
chain_link(vo, imf_cp, method = "ao", base_year = 2010)
#>                A        B
#> 2011 Q1 104.3791 98.27160
#> 2011 Q2 106.1463 96.91610
#> 2011 Q3 108.3495 95.51020
#> 2011 Q4 109.8382 95.03928
#> 2012 Q1 110.3944 94.93962
#> 2012 Q2 114.8839 91.79108
#> 2012 Q3 121.4880 88.08851
#> 2012 Q4 137.9126 78.25486
#> 2013 Q1 142.7741 76.16672
#> 2013 Q2 151.3328 71.00596
#> 2013 Q3 156.6768 67.13015
#> 2013 Q4 159.0929 65.13667
chain_link(vo, imf_cp, method = "ao", base_year = 2010, output = "measure")
#>                A        B
#> 2011 Q1 156.5686 221.1111
#> 2011 Q2 159.2195 218.0612
#> 2011 Q3 162.5243 214.8980
#> 2011 Q4 164.7573 213.8384
#> 2012 Q1 165.5916 213.6141
#> 2012 Q2 172.3259 206.5299
#> 2012 Q3 182.2320 198.1991
#> 2012 Q4 206.8690 176.0734
#> 2013 Q1 214.1611 171.3751
#> 2013 Q2 226.9992 159.7634
#> 2013 Q3 235.0152 151.0428
#> 2013 Q4 238.6393 146.5575

# One-quarter overlap: the volume indices over the overlap quarter are built by
# chain_laspeyres(), which also chains them
chain_laspeyres(imf_cp, imf_pi, method = "oqo", base_year = 2010)
#>                A        B    Total
#> 2011 Q1 104.3791 98.27160 100.7146
#> 2011 Q2 106.1463 96.91610 100.6082
#> 2011 Q3 108.3495 95.51020 100.6459
#> 2011 Q4 109.8382 95.03928 100.9588
#> 2012 Q1 110.3944 94.93962 101.1278
#> 2012 Q2 114.8839 91.79108 101.1101
#> 2012 Q3 121.4880 88.08851 101.6315
#> 2012 Q4 137.9126 78.25486 102.5598
#> 2013 Q1 142.7741 76.16672 103.3723
#> 2013 Q2 151.3328 71.00596 103.9442
#> 2013 Q3 156.6768 67.13015 103.9233
#> 2013 Q4 159.0929 65.13667 103.7745

# Annual chain index from annual Fisher indices
fis <- fisher(stats::aggregate(imf_cp), pi_annual(imf_pi, imf_cp))
annual_chain(fis, base_year = 2010)
#> Time Series:
#> Start = 2010 
#> End = 2013 
#> Frequency = 1 
#> [1] 100.0000 100.7851 101.7914 104.0577