![]() |
The LAG macro function returns a column with values such that the cell VY[x ] = data[x - lag] for x ? lag, else 0.
|
Creates a new column named TEMP containing the values 0, 1, 2, 3, and 4 in cells 1-5, respectively.
|
Creates a new column named TEMP, where each value is the contents of column V1 lagging by two time steps.
|
Creates three new columns named TEMP, VX, and VY. The values in the TEMP column are the contents of column V1 lagging by ten time steps, the values of the VX column are the contents of column V2 lagging by ten time steps, and the values of the VY column are the contents of column V3 lagging by ten time steps.
|
Creates a new column named TEMP, where the first 5 cells contain 0, followed by rows 10-20 of column V1. The other cells in TEMP are empty.
|
Creates two new columns named TEMP and VX, each with values in rows 1-7 (the other cells are empty). The values in rows 1-2 of each column are zeros. The remaining values in TEMP are the values in rows 1-5 of column V1. The remaining values in column VX are rows 1-5 of column V2.
|
Copyright IBM Corporation 2012. All Rights Reserved.
|