SDIFF Function (CREATE command)
SDIFF produces
new series based on seasonal differences of existing series.
- The specification on
SDIFFis the name or names of the existing series, the degree of differencing, and, optionally, the periodicity, all in parentheses. - The degree of differencing must be specified; there is no default.
- Since the number of seasons used in the calculations decreases by 1 for each order of differencing, system-missing values will appear at the beginning of the new series.
- You can specify only one degree of differencing per
SDIFFfunction. - If no periodicity is specified, the periodicity established
on
TSET PERIODis in effect. IfTSET PERIODhas not been specified, the periodicity established on theDATEcommand is used. If periodicity was not established anywhere, theSDIFFfunction cannot be executed. - If either of the pair of values involved in a seasonal difference computation is missing, the result is set to system-missing in the new series.
Example
CREATE SDVAR = SDIFF(VARA,1,12).
- The series SDVAR is created by applying one seasonal difference with a periodicity of 12 to the series VARA.