SAVE Subcommand (DETECTANOMALY command)
The SAVE
subcommand specifies
the additional variables to save to the active dataset.
- One or more keywords should be specified, each followed by an optional variable name or rootname in parentheses.
- The variable name or the rootname, if specified, must be a valid variable name.
- If no variable name or rootname is specified, a default varname or rootname is used. If the default varname or rootname is used and it conflicts with that of an existing variable, a suffix is added to make the name unique.
- The values of the additional variables are assigned to all cases included in the analysis, even if the cases are not in the anomaly list.
- This subcommand is not affected by the specifications
on the
PCTANOMALOUSCASES
,NUMANOMALOUSCASES
, orANOMALYCUTPOINT
keywords in theCRITERIA
subcommand.
ANOMALY(varname). The anomaly
index. If an optional varname is not specified, the default
varname is AnomalyIndex, which
is the anomaly index. If an optional varname is specified, the specified
varname is used to replace the default varname. For example, if ANOMALY(MyAnomaly)
is specified, the variable
name will be MyAnomaly.
PEERID(varname). Peer group ID. If an optional varname is not specified, the default varname PeerId is used. If an optional varname is specified, the specified name is used.
PEERSIZE(varname) . Peer group size. If an optional varname is not specified, the default variable name PeerSize is used. If an optional varname is specified, the specified name is used.
PEERPCTSIZE(varname) . Peer group size in percentage. If an optional varname is not specified, the default varname PeerPctSize is used. If an optional varname is specified, the specified name is used.
REASONVAR(rootname). The variable
associated with a reason. The number of REASONVAR
variables created depends on the
number of reasons specified on the CRITERIA
subcommand NUMREASONS
option.
If an optional rootname is not specified, the default rootname ReasonVar is used to automatically generate
one or more varnames, ReasonVar_k, where k is the kth reason. If an optional rootname is specified,
the specified name is used. If NUMREASONS=0
is specified, this option is ignored and a warning is issued.
REASONMEASURE(rootname). The variable
impact measure associated with a reason. The number of REASONMEASURE
variables created depends
on the number of reasons specified on the CRITERIA
subcommand NUMREASONS
option. If an optional rootname is not specified, the default rootname ReasonMeasure is used to automatically generate
one or more varnames, ReasonMeasure_k, where k is the kth reason. If an optional rootname is specified,
the specified name is used. If NUMREASONS=0
is specified, this option is ignored and a warning is issued.
REASONVALUE(rootname). The variable
value associated with a reason. The number of REASONVALUE
variables created depends on
the number of reasons specified on the CRITERIA
subcommand NUMREASONS
option.
If an optional rootname is not specified, the default rootname ReasonValue is used to automatically generate
one or more varnames, ReasonValue_k, where k is the kth reason. If an optional rootname is specified,
the specified name is used. If NUMREASONS=0
is specified, this option is ignored and a warning is issued.
REASONNORM(rootname). The norm value
associated with a reason. The number of REASONNORM
variables created depends on
the number of reasons specified on the CRITERIA
subcommand NUMREASONS
option.
If an optional rootname is not specified, the default rootname ReasonNorm is used to automatically generate
one or more varnames, ReasonNorm_k, where k is the kth reason. If an optional rootname is specified,
the specified name is used. If NUMREASONS=0
is specified, this option is ignored and a warning is issued.