get_chain_linked {IndexNumberTools} | R Documentation |
Get chain-linked indices
Description
Computes chain-linked index series from a pyp series.
Usage
get_chain_linked(x, ref_year, x_a = NULL)
Arguments
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. |
Details
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).
Value
The chain-linked series.
Examples
gdp_pyp <- get_pyp(gdp_volume)
get_chain_linked(gdp_pyp, 2015)
[Package IndexNumberTools version 1.1 Index]