X = pct(X)
X = pct(X,K,...)
X
[ tseries ] - Input tseries object.
K
[ numeric ] - Time shift over which the rate of change will be computed, i.e. between time t and t+k; if not specified K
will be set to -1
.
X
[ tseries ] - Percentage rate of change in the input data.'outputFreq='
[ 1
| 2
| 4
| 6
| 12
| empty ] - Convert the rate of change to the requested date frequency; empty means plain rate of change with no conversion.In this example, x
is a monthly time series. The following command computes the annualised rate of change between month t and t-1:
pct(x,-1,'outputfreq=',1)
while the following line computes the annualised rate of change between month t and t-3:
pct(x,-3,'outputFreq=',1)