The CSSM Procedure
SCORE Statement
SCORE <IN=CAS-table> <OUT=CAS-table> ;
The SCORE statement enables you to use the fitted model for scoring. By using the IN= and OUT= options in the SCORE statement, you can create, reuse, and update a score store. The score store contains sufficient context information so that you can perform many tasks, such as scenario analysis and forecasting for streaming data, without having to fit the model again. The score store is a CAS binary large object (BLOB) table, which uses a binary file format that cannot be edited or viewed like a typical CAS data table. For more information about using state space models for scoring, see the section Scoring with State Space Models.
When you specify both the IN= and OUT= options, the table names that you specify must be distinct. You can use the IN= and OUT= options by themselves or together. These options are used as follows:
- Only OUT=
Used for initial score-store creation.
- Only IN=
Used for scoring the rows of the input data table. This is useful for scenario analysis, where the scoring is done repeatedly, each time for different predictor settings. For an example of this use case, see Example 13.19.
- Both IN= and OUT=
Used for creating an updated score store that incorporates new information. This is used in the streaming data setting, where new sets of observations become available on a regular basis and the score store must be updated to take into account the latest information. For an example of this use case, see Example 13.20.
Note: Scoring is not currently supported in situations where temporal aggregation or temporal distribution is requested. For more information, see the AGGREGATE and DISTRIBUTE options in the MODEL statement.