Time Series Analysis Package

Example

This example uses the TSMODEL procedure to analyze the frequency of the time series Air:

 proc tsmodel data=mylib.air outobj=(of=mylib.outfreq(replace=YES));
    var air;
    id date interval=month;
    require tsa;
    submit;
     declare object f(FREQ);
     declare object of(OUTFREQ);
     rc = f.Initialize();
     rc = f.SetOption("SEASONALITY",12);
     rc = f.SetY(air);
     rc = f.Run();
     rc = of.Collect(f);
    endsubmit;
 run;
Last updated: July 09, 2026