logistic Treat xvar, iterate (100)
predict pscore
gmatch pscore, cal(0.1)
From the above, I can easily get matched group from the set variable.
But I want to apply nearest neighbor matching within a caliper of 0.001
I do not know how to apply the nearest neighbor and get matched group for running a regression on the matched group.
Could anyone please help me?
Related Posts with Nearest Neighbor Matching Group
Unsure if SCARs are correct (event study)Dear Statalist community, I'm working on an event study and I want to use standardized cumulative a…
How to imputate missing values for one year in a pooled cross section dataset?Hello everyone, I am new to Statalist and I will try to be brief and concise. I am working with the…
generate yearly date variableHi, very simple question: I want to generate a yearly time variable from 1870 - 2017 in my stata s…
for loopHi there, I have the following code in stata: *2018 *Form 4 generate Form4= 1 if Performance2018 =…
Calculating MHHI with triple summationHi everybody! I'm looking to create a Modified Herfindahl-Hirschmann Index (MHHI) in STATA from the …
Subscribe to:
Post Comments (Atom)
0 Response to Nearest Neighbor Matching Group
Post a Comment