|
Chapter Contents |
Previous |
Next |
| The DISCRIM Procedure |
To use this calibration information to classify observations in another data set, specify both of the following:
data original;
input position x1 x2;
datalines;
...[data lines]
;
proc discrim outstat=info;
class position;
run;
data check;
input position x1 x2;
datalines;
...[second set of data lines]
;
proc discrim data=info testdata=check testlist;
class position;
run;
The first DATA step creates the SAS data set Original, which the DISCRIM procedure uses to develop a classification criterion. Specifying OUTSTAT=INFO in the PROC DISCRIM statement causes the DISCRIM procedure to store the calibration information in a new data set called Info. The next DATA step creates the data set Check. The second PROC DISCRIM statement specifies DATA=INFO and TESTDATA=CHECK so that the classification criterion developed earlier is applied to the Check data set.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.