-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent results using MatchIt
(1:1 Nearest Neighbor, Mahalanobis Distance)
#142
Comments
The discrepancy between the second and third runs can be attributed to a change in how the Mahalanobis distance was calculated in version 4.4.0 of I can't replicate the results in your first run even after installing the exact versions of R and the packages you mention in your session info, so I can't explain that error or fix it. |
Thanks for your reply! I was teaching with this function and a bunch of students in class did get the result in the first run (-520). I will double check their session info too. |
Wow, I'm so sorry that is happening in class! I am quite mystified. If you could send me the |
Thanks a lot! I uploaded the matchit object and matched dataset. |
I'm using
matchit
for 1:1 nearest neighbor matching under Mahalanobis distance. I got inconsistent results in different R sessions. Please see below. Fixing seeds do not resolve the issue. The numbers are significantly different using the same Lalonde dataset.Created on 2023-02-09 with reprex v2.0.2
Session info
Created on 2023-02-09 by the reprex package (v2.0.0)
Session info
Created on 2023-02-10 by the reprex package (v2.0.1)
Session info
The text was updated successfully, but these errors were encountered: