-
-
Save scunning1975/8e6812d25ee8d5b90cf8b11353cd3684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Nearest neighbor matching using teffects | |
clear | |
capture log close | |
use https://github.com/scunning1975/mixtape/raw/master/training_inexact.dta, clear | |
* Minimized euclidean distance with usual variance and robust | |
teffects nnmatch (earnings age gpa) (treat), atet nn(1) metric(eucl) vce(iid) | |
teffects nnmatch (earnings age gpa) (treat), atet nn(1) metric(eucl) generate(match1) | |
* Minimized Maha distance with usual variance and robust | |
teffects nnmatch (earnings age gpa) (treat), atet nn(1) metric(maha) vce(iid) | |
teffects nnmatch (earnings age gpa) (treat), atet nn(1) metric(maha) generate(match2) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment