SHIFT VALUES
Creates lagged or leading copies of variables (values from earlier or later cases).
Syntax
Section titled “Syntax”SHIFT VALUES VARIABLE=var RESULT=newvar LAG=n | LEAD=n [/ VARIABLE=…].Synopsis
Section titled “Synopsis”| Kind | Data management |
| Body | free-form body |
| Changes data | yes, undoable |
Examples
Section titled “Examples”SHIFT VALUES VARIABLE=sales RESULT=sales_prev LAG=1.Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.