Simple matching coefficient (SMC)
A similarity measure for two yes/no columns: the share of cases in which both agree, whether both are "yes" or both are "no".
Example: 10 cases: 3 with both codes, 5 with neither, 2 with only one. The coefficient is (3 + 5) / 10 = 0.8.
Caution: It counts joint absence. With rare codes the similarity then looks large. The Jaccard measure does not count joint absence.