Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mahalanobis distance

    Hello everyone,

    I have one calculation in Stata and would like to ask your advice. The dataset is as below:
    City Region Height Weight
    London North 2.5 20
    London North 1.3 22
    London South 2.4 12
    London South 2.6 13
    London South 1 14
    New York North 1.2 11
    New York South 2 14
    New York South 1.8 12
    I need to match (pair) each observation in the Region (North) - treated group, with one observation in the Region (South) - controlled group. The conditions are these both observations are in same city, and with the lowest Mahalanobis distance (nearest neighbour) calculated based on Height and Weight.

    Could you please help and give me advice on the Stata code?

    Many thanks.
















  • #2
    Code:
    ssc install psmatch2, replace
    help psmatch2

    Comment

    Working...
    X