02 February 2018 5 8K Report

Hi,

I have a data frame that includes people who developed end stage renal disease (ESRD) and those who didn't (controls). I want to match my cases with controls based on age, sex and ethnicity. my sample is 32000. I want to match 5 controls for each case (ratio 1:5). For age I want to match the cases over a range of +/- 5 years (not the exact match), while sex and ethnicity will be exact match (understandably).

Once I match the cases and control i will compare their clinical characteristics with each other to see how different cases are from controls.

I am performing the case control match in R using the package "MatchIt"

m.out=matchit(ESRD~Age+Sex1+Race,method="nearest",data=datamatch,ratio=5)

the above syntax gives me exact matching for age (I think).

Can you please advise me what command to use if I want to match over a range of age?

If there is an easy way of doing it in spss please let me know.

p.s. I am new to R, i mostly use spss.

Many thanks

Saima

More Saima Afaq's questions See All
Similar questions and discussions