- EVAL name = number1*variable1 + number2*variable2 + ... ;
The EVAL statement defines a linear combination, named
name, of the right-hand side terms used in a MODEL statement. Any variables (for example, predictor variables and names of components) can be used in the expression of the EVAL statement; however, any observation disturbances defined by the IRREGULAR statement cannot be used in this expression. Suppose
C1 and
C2 are two components (defined by COMPONENT statements elsewhere in the program),
T1 is a trend component, and
X1 is a regression variable used in a model. The following are valid examples of the EVAL statement:
eval e1 = c1 - c2;
eval e2 = t1 + c1 + x1;
eval e2 = t1 + 2*c1 - 1.5*x1;
The estimates of linear combinations defined by the EVAL statement (for example, E1, E2, and E3) are output to the OUT= data set that is specified in the FORECAST statement.
Copyright © SAS Institute Inc. All rights reserved.