I am using Stata version 13.1 and used -teffects nnmatch- to (hopefully) achieve a 3:1 matching. Here's the code I ran:
teffects nnmatch (outcome race sex age sbp) (treatment), nneighbor(3) generate(match) metric(ivar)
My output told me:
Number of obs=121,094
Matches: requested = 3
min = 3
max = 6
and my dataset has six new variables named match1 thru match6 (I am assuming this but I think each of my cases (where treatment=1) are matched to controls (match1, match2, and match3).
I have read through the documentation (teffects is brand new to me) but it seems unclear to me how I go about saving a new matched dataset (treatment observations matched to 3 controls)?
I was planning on running -clogit- and need a group variable to do this. My goal is to find the odds of having outcome=1 given treatment(0 or 1)
Any help will be greatly appreciated.
teffects nnmatch (outcome race sex age sbp) (treatment), nneighbor(3) generate(match) metric(ivar)
My output told me:
Number of obs=121,094
Matches: requested = 3
min = 3
max = 6
and my dataset has six new variables named match1 thru match6 (I am assuming this but I think each of my cases (where treatment=1) are matched to controls (match1, match2, and match3).
I have read through the documentation (teffects is brand new to me) but it seems unclear to me how I go about saving a new matched dataset (treatment observations matched to 3 controls)?
I was planning on running -clogit- and need a group variable to do this. My goal is to find the odds of having outcome=1 given treatment(0 or 1)
Any help will be greatly appreciated.
Comment