specifies a SAS date, time, or datetime identification variable to label the detected outliers. This variable must be present
in the input data set.
The following examples illustrate a few possibilities for the OUTLIER statement.
The most basic usage, shown as follows, sets all the options to their default values.
outlier;
That is, it is equivalent to
outlier type=(ao ls) alpha=0.05 sigma=robust maxnum=5 maxpct=2;
The following statement requests a search for permanent level shifts and for temporary level changes of durations 6 and 12.
The search is limited to at most three changes and the significance level of the underlying tests is 0.001. MSE is used as
the estimate of error variance. It also requests labeling of the detected shifts using an ID variable date.
outlier type=(ls tc(6 12)) alpha=0.001 sigma=mse maxnum=3 ID=date;