Create identical parameter estimates in PROC GENMOD and in the SAS® Enterprise Miner™ Ratemaking node


The Ratemaking node in SAS Enterprise Miner efficiently builds a selected group of generalized linear models (GLMs) that are useful in developing insurance rating plans. The node calls the HPG procedure for the modeling tasks. In order to maximize performance, PROC HPG uses only the Reference parameterization method and makes these assumptions:

In practice, most (if not all) rating variables are nominal. However, their values are not necessarily consecutive nonnegative integers starting from zero. Therefore, the Ratemaking node first pre-processes the data by recoding levels in the rating variables. The recoded new numeric variables are consecutive nonnegative integers starting from zero. Values of the original rating variables are mapped to the new numeric variables in the sequence that the unique values are observed in the data. The first unique observed value is mapped to 0. The second unique observed value is mapped to 1, and so on. The recoded data set is then used by PROC HPG to build a user-specified GLM. After the GLM is built, the Ratemaking node displays results based on the original values of the rating variables.

By default, PROC HPG uses the largest integer in each nominal predictor as the reference level. Therefore, the last unique value of each rating variable that is observed in the data is always the reference level. This reference-level definition is different from the reference-level definition that is used by PROC GENMOD. The purpose of this note is to show how to obtain identical parameter estimates by specifying the same reference levels in the Ratemaking node and in the GENMOD procedure.

To replicate the Ratemaking node’s results using PROC GENMOD, determine the reference levels from the Parameter Estimates window in the Ratemaking node results. The reference levels always have Estimate values of 0, Relativity values of 1, and missing Chi-Square significances. When you run PROC GENMOD, specify those same reference levels and other equivalent model options.

To replicate the GENMOD procedure’s results using the Ratemaking node, specify the proper reference level based on your version of SAS Enterprise Miner:

Example

Build a GLM with the Tweedie distribution and logarithm link function to predict PurePremium. Use the five rating-variables that are listed in the table below:

The first ten observations are shown.

Read this data into SAS Enterprise Miner and run the GLM using the Ratemaking node. The table below describes the order of values that are read and the reference level that is used by the node.

Specify the above reference levels in the PROC GENMOD code to replicate results of the Ratemaking node.