Closed Chris-M-P closed 2 years ago
Hi, Thanks for reporting this, it should be an easy fix (just dropping the missing data before doing any calculation)!
Update: I pushed a fix to a new branch, could you give it a try by installing the new version with
library(remotes)
remotes::install_github("ellessenne/comorbidity", ref = "#50")
Looks good to me - thanks for the super quick fix!
Super, thanks for checking. I'll merge this branch, and the fix will be on CRAN with the next release of {comorbidity}!
Missing ICD10 (and probably ICD9) codes cause people to be marked as having every comorbidity.
Compare ID 1 using this code:
With the same person after setting 1 code to missing: