FOREST Procedure

VIICODE Statement

  • VIICODE <options>;

The VIICODE statement writes SAS DATA step code to a file or to a catalog entry. The SAS DATA step code creates new variables on the basis of the detected variable interactions.

You can specify the following options in addition to all options in the CODE statement. For more information about the syntax of the CODE statement, see the section CODE Statement in Chapter 2, Shared Concepts.

ADD

requests that the newly created variables be of the form upper V plus upper W.

LIMIT=number

specifies the maximum number of new variables to create. By default, LIMIT=200.

MISS

requests that the generated code handle missing values.

MULTIPLY

requests that the newly created variables be of the form upper V times upper W.

SUBTRACT

requests that the newly created variables be of the form upper V minus upper W.

THRESHOLD=number

requests that interactions with an importance less than number times the maximum interaction importance be ignored, where number must be between 0 and 1. By default, THRESHOLD=0.0001.

If the VII= option is not specified in the PROC FOREST statement, then the VIICODE statement is ignored. For more information about variable interaction importance, see the section Variable Interaction Importance.

Last updated: August 06, 2026