Generates series of the percentage variation of the series data passed as parameter.
Time series or vector to be converted to a
(Optional) Number of lags to differentiate with
Data must be time indexed, either as
zoo. If observation(s) are negative or zero, the algorithm changes to the traditional percentage variation.
Time series of the percentage variation with the first position(s) as
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.