Hi,
I have a database with 300 patients, some of them controls and some cases. I want to randomly select and match 96 cases with 96 controls. I want to find a match 1:1, that is, for each control just one case. Without repeating them, only using them one time per pair. I want to match them exactly for Gender and in a range for Age (I am not looking for an exact match, but the most similar pair).
I want to do so in R, but I don't know how. I tried a package called ccoptimalmatch, but the match is not 1:1, but k:1. Moreover, I found it difficult to understand.
After matching them, I will run some experiments in the lab and for the analysis I wil compare both groups, so I need to match them.
Thanks! :)