Skip to contents

Computes the pyp index series from a chain-linked series.

Usage

get_pyp(x, x_a = NULL)

Arguments

x

(ts) Chain-linked series with annual overlap.

x_a

(ts) Annual chain-linked series. If not given, it's computed by taking the average of each year.

Value

The pyp series.

Details

The time series should start at (y,1) where y is any year.

Examples

get_pyp(gdp_volume)
#>           Qtr1      Qtr2      Qtr3      Qtr4
#> 1996  97.55893 103.53734 101.09786 108.23560
#> 1997  97.53150 104.24301 102.13891 110.43599
#> 1998  98.81166 105.00692 102.93284 110.45620
#> 1999  98.84960 105.16470 103.29994 110.32132
#> 2000 100.35379 106.21837 103.73942 110.49088
#> 2001  99.54211 104.76413 102.38476 108.98548
#> 2002  98.27063 103.96110 101.05317 107.73706
#> 2003  99.16989 103.75440 101.12836 107.70455
#> 2004  98.84950 104.06155 101.62771 107.91957
#> 2005  98.89500 104.74160 102.08138 108.48651
#> 2006  99.99889 104.95000 102.24816 108.97663
#> 2007  99.48139 104.43709 101.71465 108.50086
#> 2008  98.19693 102.72800  99.13315 103.01088
#> 2009  92.91066  97.31257  94.90591  99.79825
#> 2010  96.56570 101.34928  98.76181 103.69972
#> 2011  96.76247 100.86516  98.22342 101.58935
#> 2012  95.36869  98.30761  96.06488  98.79833
#> 2013  95.27054  99.89108  97.95819 101.17072
#> 2014  97.41900 102.25302 101.20117 105.20875
#> 2015  99.32080 104.94300 104.02935 107.95026
#> 2016  98.89095 104.05665 102.82881 105.88424
#> 2017  98.30637 104.32219 102.83972 106.11600
#> 2018  97.98639 103.91927 101.92881 105.74720
#> 2019  98.37000 103.35301 101.33338 104.78839
#> 2020  92.48452  79.39575  90.62255  93.73680
#> 2021 100.20070 106.43440 107.36140 112.73610
#> 2022 100.84292 107.00603 106.69201 110.17635
#> 2023  99.30042 103.05605 102.24131 106.10463
#> 2024  99.45966 103.83819 102.96411 106.72376