re post 5 on here https://www.statalist.org/forums/for...score-matching
i am trying to understand this code which the user recommends using after psmatch2 to plot to kdensity curves to identify control when treatment = 0 and dup >1.
Code:
gen match=_n1 replace match=_id if match==.
therefore why should there be a missing value ?
why does the user say if match =. Replace with _id.
how can there be a missing value if the match variable generated is = _n1
the user then goes on to use the code below to identify the duolicates and therefor identify the matched (i think)
Code:
duplicates tag match, gen(dup)
0 Response to Gen match =_n1 replace match = _id if match ==. How can you have missing value ??
Post a Comment