Home   >   User Resources   >   Online Help   >   apaMatrix.Diff.Cols
 

 

Function index Version 3.0.0

apaMatrix.Diff.Cols(Matrix, n)

Excel=apaMatrix.Diff.Cols(Matrix, n)

Result

Returns the column-wise n-th differences of a data matrix.

Syntax

Matrix: data matrix

n: order of differencing, i.e. number of times the data is differenced

Algorithm

The data is differenced n times, each time calculating x(t) − x(t−1) for each column.

Remarks

The result has n rows less than the input matrix. n = 0 returns a copy of the input.