View source: R/bimets_ts_functions.R
TSDELTAP | R Documentation |
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 the 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.
TSDELTA
TSLAG
MOVAVG
INDEXNUM
#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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.