thomas-rasmussen / sas_macros

SAS macros
Creative Commons Zero v1.0 Universal
5 stars 4 forks source link

hash_match: implement new variant of matching with replacement. #12

Closed thomas-rasmussen closed 4 years ago

thomas-rasmussen commented 4 years ago

The current implementation of matching with replacement allows not only that a person is used as a control for multiple cases, but also multiple times for the same case. In extreme scenarios this might lead to the same person being used as control more than once or even as all controls for a case, which might not be ideal.

Another way to do matching with replacement is to allow a person to be a control for multiple cases, but only once for each case. Look into implemention this form of matching.

What should it be called? Matching with partial/semi replacement? Code as replace = p/s?