Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The DISCRIM Procedure

Computational Resources

In the following discussion, let

n =number of observations in the training data set
v =number of variables
c =number of class levels
k =number of canonical variables
l =length of the CLASS variable

Memory Requirements

The amount of temporary storage required depends on the discriminant method used and the options specified. The least amount of temporary storage in bytes needed to process the data is approximately
c(32v + 3l + 128) + 8v2 + 104v + 4l
A parametric method (METHOD=NORMAL) requires an additional temporary memory of 12v2+100v bytes. When you specify the CROSSVALIDATE option, this temporary storage must be increased by 4v2+44v bytes. When a nonparametric method (METHOD=NPAR) is used, an additional temporary storage of 10v2+94v bytes is needed if you specify METRIC=FULL to evaluate the distances.

With the MANOVA option, the temporary storage must be increased by 8v2+96v bytes. The CANONICAL option requires a temporary storage of 2v2+94v+8k(v+c) bytes. The POSTERR option requires a temporary storage of 8c2+64c+96 bytes. Additional temporary storage is also required for classification summary and for each output data set.

For example, in the following statements,

   proc discrim manova;
      class gp;
      var x1 x2 x3;
   run;

if the CLASS variable gp has a length of eight and the input data set contains two class levels, the procedure requires a temporary storage of 1992 bytes. This includes 1104 bytes for data processing, 480 bytes for using a parametric method, and 408 bytes for specifying the MANOVA option.

Time Requirements

The following factors determine the time requirements of discriminant analysis. Each of the preceding factors has a different machine-dependent constant of proportionality.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.