%AA_MODEL_REGISTER Autocall Macro
Creates an SPK package file and registers models
to the SAS Metadata Repository.
Syntax
Model Identification Arguments
- MODELNAME=model-name
-
specifies the name
of the model.
Default |
aa_model_&sysuserid, where &sysuserid contains
the user ID or login of the current SAS process.
|
- MODELDESCR=description
-
is a description of
the model.
- ITEMSTORE=item-store-name
-
specifies the name
of the item store that is created by some SAS/STAT procedures. The
item store is used to retrieve input and target variable metadata,
data set names, score code, training code, the mining algorithm, and
the mining function.
Note |
Item store data is not available from these SAS/STAT
procedures: REG, GLM, GENMOD, GLIMMIX, PHREG, and SURVEYPHREG.
|
Tip |
If you do not specify the ITEMSTORE= option, you must
specify these options: DATA=, TARGET=, SCORECODEFILE=, SCORECODEFORMAT=.
If you specify the ITEMSTORE= option, you do not need to specify these
options.
|
Action Arguments
- REGISTER=Y | N
-
specifies whether to
register the model in the SAS Metadata Repository.
Y |
indicates to register the model in the SAS Metadata
Repository.
|
N |
indicates not to register the model in the SAS Metadata
Repository.
|
- MRPATH=SAS-Metadata-Repository-Folder
-
specifies a folder,
using SAS Folders as the root node in the
SAS Metadata Repository, where the model is registered.
Default |
/Shared Data/ |
Note |
The forward slash ( / ) after the last folder in the
path is not required.
|
Example |
/Shared Data/Model Manager/Models/ |
- SPK=Y | N
-
specifies whether to
create a SAS package file:
Y |
indicates to create a SAS package file. |
N |
indicates not to create a SAS package file. |
Requirement |
If SPK=Y, you must use the SPKFOLDER= option to specify
a location to store the SPK file.
|
- SPKFOLDER=SPK-folder-path
-
specifies the location
to store the SPK file.
Requirement |
The option is required when you specify SPK=Y. |
Model Component Arguments
These arguments must
be specified if you do not specify the ITEMSTORE= option:
- DATA=training-data-set-name
-
specifies the name
of the training data set for the model.
- LEVEL=BINARY | ORDINAL | NOMINAL | INTERVAL
-
specifies the class
target level of the model.
BINARY |
the variable can contain two discrete values (for
example, Yes and No).
|
ORDINAL |
the variable can contain discrete values that have
a logical order (for example, 1, 2, 3, 4).
|
|
the variable contains discrete values that do not
have a logical order (for example, car, truck, bus, and train).
|
INTERVAL |
the variable contains values across a range. For
example, temperature ranges could be between 0–100.
|
- SCORECODEFILE=filename
-
specifies the name
of the file that contains the score code.
Tip |
If you specify the ITEMSTORE= option, you do not need
to specify this option.
|
- SCORECODEFORMAT=DATASTEP | PROGRAM
-
specifies the format
of the score code.
DATASTEP |
the score code contains only DATA step statements |
PROGRAM |
the score code contains DATA step statements, procedures,
or macros.
|
- TARGET=target-variable
-
specifies the name
of the target variable for model.
Optional Arguments
- DEBUG=Y | N
-
specifies whether to
prevent deletion of the generated data sets:
Y |
indicates to keep the generated data sets. |
N |
indicates not to keep the generated data sets. |
- MININGALGORITHM=algorithm
-
specifies the type
of algorithm that is used to create the mode (for example, DecisionTree
or logistic).
- MININGFUNCTION=mining-function
-
specifies one of the
following mining functions:
- PMMLFILE=filename
-
specifies the name
of the file that contains the PMML score code. This option is optional.
- SCORE=scored-data-set-name
-
specifies the name
of the scored training data set. This data set is used when there
is no score code available to determine the output variables.
- SEGMENT=variable
-
specifies the name
of the segment variable.
- TRAINFILE=train-program-filename
-
specifies the name
of the training program file.