DiffX

Syntax

DiffX(Input: ITimeSeries, Lag: Integer)

Parameters

Input. Variable

Lag. The parameter sets a shift (lag) of variable points in a time period. It can take only positive values. Optional parameter. By default the parameter is 1 - previous period.

Description

It calculates the growth of variable points to the specified period: X[t]-X[t-Lag].

Example

Formula Result Application
= DiffX({Brazil|BCA}, 2) The rate of change of the Brazil|BCA time series observations is calculated to the period that is shifted from current to two points back. It can be used in formulas of calculated series of time series database and model formulas of modeling container that is a child of the time series database.
= DiffX(X1, 3)

The rate of change of values of the X1 factor points is calculated to the previous period that is shifted from the current to two points back.

It can be used in model formulas of modeling container.

See also:

Functions Available in Expression Editor │ TransformationsIModelling.DiffX