
MATRIX BINName:
The same rules that a histogram uses to determine classes apply to this command as well. Specifically, the default class widths are determined as follows:
You can override these defaults with the commands
CLASS LOWER <value> CLASS UPPER <value> The SET HISTOGRAM CLASS WIDTH lets you set several other alternatives for the default class width.
where <M> is a matrix; <X2> is a variable where the computed class midpoints are returned; and <Y2> is a variable where the computed class frequencies are returned.
DIMENSION 100 COLUMNS READ MATRIX SIGMA 1.0 0.707 0.0 0.0 0.0 0.707 1.0 0.5 0.5 0.5 0.0 0.5 1.0 0.5 0.5 0.0 0.5 0.5 1.0 0.5 0.0 0.5 0.5 0.5 1.0 END OF DATA . LET MU = DATA 0 0 0 0 0 LET N = 200 LET M = MULTIVARIATE NORMAL RANDOM NUMBERS MU SIGMA N . LET Y2 X2 = MATRIX BIN M HISTOGRAM Y2 X2
Date created: 4/14/2006 