Time Series Percentage Lag Differences (Delta Percentage)
This function returns the O
-order, L
-lag percentage differences of the input time series.
If the input time series frequency is a multiple of the L
lag argument, then it is possible to set the argument ANNUALIZE=TRUE
in order to have the percent changes returned at annual rates, i.e. raised to power of frequency/L
.
TSDELTAP(x = NULL, L = 1, ANNUALIZE = FALSE, avoidCompliance = FALSE, ...)
x |
Input time series that must satisfy the compliance control check defined in |
L |
Lag. |
ANNUALIZE |
If TRUE the percent changes are returned as annual rates, i.e. raised to the power of frequency/L |
avoidCompliance |
If |
... |
Backward compatibility. |
This function returns a BIMETS time series.
#TS Q n=10; ts1=TSERIES(n:0,START=c(2000,1),FREQ='Q') TABIT(ts1,TSDELTAP(ts1,1)) #TS 366 ts1=TSERIES(seq(1,length=10,by=-0.001),START=c(2000,1),FREQ=366) TABIT(ts1,TSDELTAP(ts1,1,ANNUALIZE=TRUE))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.