Hey Statalist,

I need help using the teffects nnmatch - nearest-neighbor matching function in Stata. I try to investigate the effect of an event using this function. There is a group that have received a treatment (Treatment Group) and a group that has not received a treatment (Control Group). I use this function to prove this effect by calculating the Average Treatment Effect on Treatment. Now I have the problem that I can calculate the ATT by using the function effects nmatch, but I don't know which treatment part was matched with which control part. I want to look at the details of the matched pairs and compare them. It would be ideally, if e.g. Bank A is matched with Bank C and E (in the case of nneighbor(2)), to export all the information into new variables. So that I could say something about the total_assets of Bank A in comparison to Bank C and E.

My function looks like that:

teffects nnmatch (d_ct1_capital total_assets) (treatment) if first_obs==1, atet nneighbor(2) vce(iid) metric(maha) biasadj(total_assets)

I read in a different post, that with psmatch you may use the function keep() to extract the needed information about the matches

But I don't find a solution for the teffects nmatch case

Thank you for your help