CREATE
Creates time-series variables: cumulative sums, differences, lags, leads, moving averages, running medians, seasonal differences and T4253H smoothing.
Syntax
Section titled “Syntax”CREATE newvar = CSUM(var) | DIFF(var, d) | LAG(var, k) | LEAD(var, k) | MA(var, span) | PMA(var, span) | RMED(var, span) | SDIFF(var, d, period) | T4253H(var) [/ newvar = …].Synopsis
Section titled “Synopsis”| Kind | Data management |
| Body | free-form body |
| Changes data | yes, undoable |
Examples
Section titled “Examples”CREATE sales_d = DIFF(sales, 1) / sales_ma = MA(sales, 12).- Values that need cases outside the file, or a missing value inside the window, are system-missing.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.