| get_chain_linked | R Documentation |
Computes chain-linked index series from a pyp series.
get_chain_linked(x, ref_year, x_a = NULL)
x |
(ts) A pyp series. |
ref_year |
(num) Reference year for the chain-linked series. |
x_a |
(ts) Annual pyp series. If not given, it's computed by taking the average of each year. |
The chain-linked series x_chain is computed with the annual overlap method. Suppose the x series runs from (y0, p0 = 0) to (y1, p1), where pi is a subyear period. Then the chain-linked series at (y2, p2) is given by the cumulative product of the annual series from y0 to y2-1 times x at (y2, p2).
The chain-linked series.
gdp_pyp <- get_pyp(gdp_volume)
get_chain_linked(gdp_pyp, 2015)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.