Hi everyone, I am wondering how to find the matched observation with nearest Mahalanobis distance.
Saying I have 50 schools (50 rows in my data) , with 5 continuous variables(X1-X5) in each row , indicating the 5 aspects of each school.
I chose 10 schools,saying A1-A10, as the treated school from the 50 schools randomly.
Then I would like to find the corresponding matched school (saying B1- B10) for each treated school .
For each pair of schools , they have the nearest Mahalanobis distance in terms of the 5 aspects of the school,X1-X5, meaning that the distance( with regard to X1-X5) is the nearest between B1 and A1 than the distance between any other school and A1.
How could I find all the matched schools ?
Thank you~
Related Posts with How to find the matched observation with nearest Mahalanobis distance?
Error 639Hi I am trying to run a do file and getting the following error message I have checked and there is…
xtabond2 vs xtdpdgmmHello, I'm trying to study the spillover effect of trading with Arab Spring countries on economic gr…
Loop over variablesinput double(month202001 month202002 month202003 month202004 month202005 month202101 month202102 mon…
How to deal with unequal variance - mixed effects linear regressionHello, I have run a linear mixed model to test the within-subject difference in activity behaviours…
delete observations according to some rulesDear statalist, I have two sets of data and I append them together. The first set consists of a ser…
Subscribe to:
Post Comments (Atom)
0 Response to How to find the matched observation with nearest Mahalanobis distance?
Post a Comment