QTRSELECT Procedure
CODE Statement
CODE <options>;
The CODE statement writes SAS DATA step code for computing predicted values of the fitted model to a file or to a table. To score new data, you can then include the file in a DATA step, or you can specify the table in the runCodeTable action in the dataStep action set (for more information, see SAS Viya: System Programming Guide).
Table 3 summarizes the options available in the CODE statement.
Table 3: CODE Statement Options
| Option | Description |
|---|---|
| COMMENT | Adds comments to the generated code |
| FILE= | Names the file in which to save the generated code |
| FORMATWIDTH= | Specifies the numeric format width for the regression coefficients |
| INDENTSIZE= | Specifies the number of spaces to indent the generated code |
| LABELID= | Specifies a number used to construct names and labels |
| LINESIZE= | Specifies the line size for the generated code |
| NOTRIM | Compares formatted values, including blank padding |
| OUT= | Names an output table in which to save the generated code |
For more information about the syntax of the CODE statement, see the section CODE Statement in Chapter 2, Shared Concepts.
The predicted values in the SAS DATA step code are computed based on the parameter estimates for the selected models. If you specify multiple quantile levels by using the QUANTILES option in the MODEL statement, then one variable of the predicted values is generated for each specified quantile level.