The HPGENSELECT Procedure

CODE Statement

  • CODE <options>;

The CODE statement writes SAS DATA step code for computing predicted values of the fitted model either to a file or to a catalog entry. This code can then be included in a DATA step to score new data.

Table 7.2 summarizes the options available in the CODE statement.

Table 7.2: CODE Statement Options

Option

Description

CATALOG=

Names the catalog entry where the generated code is saved

DUMMIES

Retains the dummy variables in the data set

ERROR

Computes the error function

FILE=

Names the file where the generated code is saved

FORMAT=

Specifies the numeric format for the regression coefficients

GROUP=

Specifies the group identifier for array names and statement labels

IMPUTE

Imputes predicted values for observations with missing or invalid covariates

LINESIZE=

Specifies the line size of the generated code

LOOKUP=

Specifies the algorithm for looking up CLASS levels

RESIDUAL

Computes residuals


For details about the syntax of the CODE statement, see the section CODE Statement in SAS/STAT 13.2 User's Guide in ChapterĀ 19: Shared Concepts and Topics in SAS/STAT 13.2 User's Guide.