-
Notifications
You must be signed in to change notification settings - Fork 43
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
Different results after version change #51
Comments
We did just update What method of matching are you using (and with which options)? Also, just to clarify, you are saying that when you run |
Thank you for your quick reply. We will try reinstalling an the older version to see. Please see the code below for the method we are using. We have been generating the list using the match matrix, and yes, on one computer the resulting number of individuals listed when we send that to an Excel file then differs from the number matched reported by summary(). m.out <- matchit(whole_data$STUDY ~ whole_data$X + whole_data$Y + whole_data$Z, data=whole_data, method="nearest", ratio=1, replace=TRUE) |
I see. This is a misunderstanding about As an extreme example, imagine there was a single control unit that was the nearest neighbor to every treated unit. In If you want a dataset that has one row for each time a unit appears in a match, you need to use Regarding the discrepancies across versions, this may be due to the fact that old versions of |
Sure, I understand this - once we exported the list to Excel, we have been generating a de-duplicated list and determining how many times a control individual was matched. However, the deduplicated number still did not match the summary() output. We will try using get_matches() in future, that's a great option. It sounds as though your last point may be the explanation for our problem though. We are currently trying to reinstall older versions of MatchIt on the two machines where we have been getting these odd results, to see if they match the non-updated machine's results. |
Please also let me know if this is occurring in the new version of |
We have so far not been able to solve the issue with the results being different on different machines. We do have the latest versions of MatchIt on two computers, but an older version on the other. It is not clear which version is the 'correct' one without knowing what is causing the disparity. I will let you know if we find a solution, thank you for your help. |
Hello, |
@joatob, when nearest neighbor matching without replacement and without a caliper, This comes at the expense of old results no longer being reproducible with newer versions of |
Hello,
and then installing a later version of Matchit, it appears my code works again to produce the same results as before. |
I encountered this package, I recommend using this with your analyses to be able to use older versions of For example, to reproduce an analysis using a version of
If you have this at the beginning of your scripts, you don't need to worry about keeping track of versions. |
Hi there -
We have been running the same code with small variations over the course of this year and last and have begun getting different results when we run one iteration of code across different computers, since some members of the team updated R and reinstalled MatchIt. The before and after matching baseline characteristics are the same across versions, but the patient numbers matched differ. When we extract a patient list (of matched patients), we get a different number to in the MatchIt output also.
Is there some adjustment being applied to the patient numbers? We wondered about a weighting. Any ideas about why this is happening would be much appreciated. Thank you!
Augusta
The text was updated successfully, but these errors were encountered: