Hello,
Suppose I have data set containing 10 variables -two sets of 5 variables, x1-x5 and y1-y5 - and 1000 observations.
For each observation I would like to calculate the Mahalanobis distance between those two sets, (x1-x5) and (y1-y5).
I have not figured out how to do it.
I found an ado package called mahapick which contains a command called mahascore. But it does not have the option to compare the so called "covariates" (x1 - x5 in my case) to another set of variables.
Can anyone suggest how to do it please?
Thanks!
Suppose I have data set containing 10 variables -two sets of 5 variables, x1-x5 and y1-y5 - and 1000 observations.
For each observation I would like to calculate the Mahalanobis distance between those two sets, (x1-x5) and (y1-y5).
I have not figured out how to do it.
I found an ado package called mahapick which contains a command called mahascore. But it does not have the option to compare the so called "covariates" (x1 - x5 in my case) to another set of variables.
Can anyone suggest how to do it please?
Thanks!
Comment