Hi All,
I am trying to calculate Mahalanobis distance between two variables Xj and Xu in Stata. However, I am not sure what code to use for the transpose operator T. This is the formula I am using:
MD(Xj,Xu)=√((Xj-Xu)^T C^(-1) (Xj-Xu))
Any advice would be greatly appreciated.
Thank you!
I am trying to calculate Mahalanobis distance between two variables Xj and Xu in Stata. However, I am not sure what code to use for the transpose operator T. This is the formula I am using:
MD(Xj,Xu)=√((Xj-Xu)^T C^(-1) (Xj-Xu))
Any advice would be greatly appreciated.
Thank you!
Comment