Skip to contents

Returns the series of quantity indices in previous year prices from a current prices and

Usage

get_q_index(current, constant)

Arguments

current

(ts) Values at current prices.

constant

(ts) Values at previous year prices.

Value

Series of quantity indices for previous year prices.

Examples

gdp_pyp <- get_pyp(gdp_volume)
gdp_constant <- gdp_current / gdp_pyp * 100
get_q_index(gdp_current, gdp_constant)
#>           Qtr1      Qtr2      Qtr3      Qtr4
#> 1996 103.03241 103.47674 103.22795 104.32385
#> 1997 102.18246 102.38496 101.77169 103.43122
#> 1998 101.65758 102.73059 102.08023 103.93492
#> 1999 102.60324 102.53385 101.63025 103.63843
#> 2000 102.88142 103.03921 102.93496 104.70312
#> 2001 103.30251 104.06946 103.75016 105.42395
#> 2002 103.21531 104.22003 103.65809 105.17385
#> 2003 102.72269 104.33320 103.71987 105.13327
#> 2004 102.78226 104.06612 103.26911 105.40212
#> 2005 103.38187 104.46611 103.36643 105.52297
#> 2006 102.80530 104.49128 103.40830 105.45520
#> 2007 102.68623 104.13888 102.30053 104.98936
#> 2008 101.49547 103.30712 101.31507 103.60506
#> 2009 100.18036 100.91192  99.08391 100.70621
#> 2010  99.79228 101.03179  99.19635 101.08102
#> 2011  99.72789 100.81659  98.54702 100.28214
#> 2012  99.46275 100.44663  99.15649 100.09624
#> 2013 100.52885 100.74759  99.53375 100.92318
#> 2014  99.91193 100.10487  98.83467 100.24876
#> 2015 100.53722 100.74325  99.47411 101.42016
#> 2016  99.79355 100.49325  99.44355 101.69543
#> 2017 100.91054 101.14043 100.23656 102.68505
#> 2018 100.68103 101.04678 100.34617 102.60545
#> 2019 101.02272 101.45933 100.30020 102.87073
#> 2020 100.31292 101.32607  99.94860 102.92723
#> 2021 100.74271 102.03448 101.35903 105.80034
#> 2022 102.77681 103.98329 103.70063 108.16984
#> 2023 104.61200 106.21530 105.27534 108.69910
#> 2024 101.42502 102.97201 102.11857 105.28560