DETECTANOMALY

DETECTANOMALY is available in the Data Preparation option.

The DETECTANOMALY procedure searches for unusual cases based on deviations from the norms of their cluster groups.

DETECTANOMALY

[/VARIABLES [CATEGORICAL=varlist] 
            [SCALE=varlist] 
            [ID=variable]
            [EXCEPT=varlist]]

[/HANDLEMISSING [APPLY={NO**}]
                       {YES }
                [CREATEMISPROPVAR={NO**}]]
                                  {YES }

[/CRITERIA [MINNUMPEERS={1**    }]
                        {integer}
           [MAXNUMPEERS={15**   }]
                        {integer}
           [MLWEIGHT={6**   }]
                     {number}
           [NUMREASONS={1**    }]
                       {integer}
           [PCTANOMALOUSCASES={5**   }]
                              {number}
           [NUMANOMALOUSCASES={integer}]
           [ANOMALYCUTPOINT={2**   }
                            {number}
                            {NONE  }]]

[/SAVE [ANOMALY[(varname)]]
       [PEERID[(varname)]] 
       [PEERSIZE[(varname)]] 
       [PEERPCTSIZE[(varname)]]
       [REASONVAR[(rootname)]] 
       [REASONMEASURE[(rootname)]] 
       [REASONVALUE[(rootname)]] 
       [REASONNORM[(rootname)]]] 

[/OUTFILE [MODEL=filespec]]

[/PRINT [CPS]  [ANOMALYLIST**]  [NORMS]
        [ANOMALYSUMMARY]  [REASONSUMMARY] 
        [NONE]]

** Default if the subcommand or keyword is omitted.

This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.

Syntax for the DETECTANOMALY command can be generated from the Identify Unusual Cases dialog.

Release History

Release 14.0

  • Command introduced.

Example

DETECTANOMALY.