Dear all,
I am combining exact and propensity matching using the function kmatch.
This example code matches male and female patients. First three categories of age are matched using exact matching and then bloodpressure is used for ps-macthing nearest neighbor matching within these age-groups.
What I however seek to do is to match units of different age groups. I.e., a unit of age group of 1 should not be exactly match to another unit of age-group 1 (as it is in the example) but to a unit of age-group 2 or 3.
Could perhaps anyone provide suggestions on how to implement this?
I am combining exact and propensity matching using the function kmatch.
This example code matches male and female patients. First three categories of age are matched using exact matching and then bloodpressure is used for ps-macthing nearest neighbor matching within these age-groups.
Code:
sysuse bplong keep if when == 1 kmatch ps sex bp, idgenerate idvar(patient) ematch(agegrp) wor nn(1)
Could perhaps anyone provide suggestions on how to implement this?
Comment