02-18-2014 05:32 PM
I Have 8 variables, (x1-x8) and 310 observations for each variable, with no missing observations.
I Need to compute Mahalanobis Distance from a reference point of (7,7,7,7,7,7,7,7).
I understand that Proc IML is the easiest method for this. Can someone assist me with the SAS code necessary to do this?
thanks in advance.
02-20-2014 11:14 AM
That is the mathematical notation. The corresponding IML syntax would be
X = x1 || x2 || x3 || x4 ||x5 ||x6 || x7 || x8;
varNames = "x1":"x8";
read all varNames into X;