Shift Variables

Ribbon bar. Select the Data tab. In the Variables group, click Shift to display the Shift Variables dialog box...

Classic menus. Select Shift (Lag) from the Data menu to display the Shift Variables dialog box...

...which is used to shift a selected variable backward ("up") or forward ("down"), relative to the other variables in the file, by a specified number of cases (lag). Statistica adds blank cases to the remaining variables in the file either before the first case (if the selected variable is shifted backward) or after the last case of the data file (if the selected variable is shifted forward).

Variable. Click the Variables button to display a list of current variables in the spreadsheet from which you select a variable to be shifted.

Lag. Enter a number in the Lag box or use the microscrolls to specify the magnitude of the shift (i.e., the number of cases by which to move the variable).

Direction. Use the options in the Direction group box to specify the direction in which to move the variable.

Forward. Select the Forward option button to move the variable Forward (down).

Backward. Select the Backward option button to move the variable  Backward (up).

OK. After you click the OK button, Statistica shifts the selected variables and adds blank cases to the remaining variables in the file either before the first case (if the selected variable is shifted backward) or after the last case of the data file (if the selected variable is shifted forward).

Cancel. Click the Cancel button to close this dialog box. Any changes made will be disregarded.