05-10-2018 12:04 AM
I have a dataset with cases and potential controls. I would like to select controls by matching age, race, sex and birth weight in 1:10. I used to select controls by creating index, for example, concatenate age|race|sex , and then use proc surveyselect. However, this method cannot satisfy my need since I need to matching birth weight in certain range, such as +/- 50 g. How can I select controls by matching exact variables and variables in a range? Thanks.
05-10-2018 10:31 AM
Try a Google search for
SAS marching macro
There are a number of macros out there that will do tolerance matching on continuous variables.
Alternatively, you might consider propensity score matching. That often performs better than the simple case-control approach you posited.