Generating Score Code for COUNTREG Procedure Models

The %MM_Countreg_Create_Scorecode macro creates DATA step statements to compute the predicted values of a model that you create using the COUNTREG procedure. Input to the macro is the ODS output data set ParameterEstimates that is created by the COUNTREG procedure. You can also specify the location to save the score code and other macro output files. You can specify a location for prefix values for the dependent variable and the variable for the probability of having a zero-generating process.
Note: SAS Decision Manager does not support PROC COUNTREG models when VALIDVARNAME="ANY".
The score code generation supports the following COUNTREG procedure features:
PROC COUNTREG Feature
Supported Functionality
Categorical predictor
Character and numeric class variables
Continuous predictor
Variable values are used as is.
MODEL specification
Effect specifications that are allowed by the MODEL statement, including main effects, interactions, and powers of continuous predictors. Only one MODEL statement can be specified.
ZEROMODEL specification
Effect specifications that are allowed in the MODEL statement, including the intercept, main effects, interactions, and powers of continuous predictors.
OFFSET variables
The offset variables in the MODEL and ZEROMODEL statements are retrieved from the FitSummary table.
ZEROMODEL statement LINK function
The LOGISTIC and the NORMAL link distribution functions that are allowed in the ZEROMODEL statement.
BY-group processing is not supported.
After you have created the score code, you can register the score code and other COUNTREG procedure model component files by using the $AA_Model_Register macro or you can import the model using the local files method. For more information, see Using Macros to Register Models Not Created by SAS Enterprise Miner and Import Models from Local Files.