SHAPLEY Procedure
The PROC SHAPLEY statement invokes the procedure. Table 1 summarizes the options in this statement.
Table 1: PROC SHAPLEY Statement Options
|
Option | Description |
|---|
|
DATA= | Specifies the input query data table, which contains the query observation |
|
IMPUTE= | Specifies how to impute missing values |
|
LOGLEVEL= | Specifies a value to control the quantity and type of notes to print to the client log |
|
REFERENCEDATA= | Specifies the input reference data table |
You must specify the following options:
-
DATA=libref.data-table
-
names the input data table for PROC SHAPLEY to use. The default is the most recently created data table. libref.data-table is a two-level name, where
- libref
refers to a collection of information that is defined in the LIBNAME statement and includes the library, which includes a path to the data, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about libref, see the section Using CAS Sessions and CAS Engine Librefs.
- data-table
specifies the name of the input data table.
-
REFERENCEDATA=libref.data-table
specifies the input reference data table. libref.data-table is a two-level name, where libref refers to the library, and data-table specifies the name of the input data table. For more information about this two-level name, see the DATA= option and the section Using CAS Sessions and CAS Engine Librefs.
You can also specify the following options:
-
IMPUTE=MEAN | NONE | WEIGHTEDMEAN
-
specifies the method to use for imputing the missing observations. You can specify the following methods:
- MEAN
uses the mean to impute missing values of interval variables, and uses the mode to impute missing values of nominal variables.
- NONE
does not impute missing values.
- WEIGHTEDMEAN
uses the weighted mean to impute missing values of interval variables, and uses the mode to impute missing values of nominal variables.
By default, IMPUTE=NONE.
-
LOGLEVEL=0 | 1 | 2
-
controls the quantity and type of notes to print to the client log.
- 0
prints only warnings and errors.
- 1
prints some notes.
- 2
prints many notes.
By default, LOGLEVEL=1.
Last updated: August 06, 2026