Hi All. I’d love some help with the PSM dataset I’m constructing. I’ve already established overlap and have used a logit model to predict propensity scores (var names are generic):
logit treatment cov1 cov2 cov3 cov4 cov5, vce (robust) nolog
predict PS
I then sorted by treatment and used the teffects command to generate nearest neighbor matches (I’m not really interested in the teffects estimation – just the matching):
teffects nnmatch (y PS) (treatment), nn(5) generate stub
I’ve spot checked and it appears this is giving me what I want -- 5 control observations per treatment observation (oversampled with replacement). But the stubs are observation numbers specific to the current order of the data. What I cannot figure out is how to use the stubs to generate dummies by these observation #s (one stub list at a time, 1 through 5) to refine, save and append so that I have the matched sample I’m trying to construct.
Many thanks in advance! Annie
Related Posts with PSM help: using observation # stubs to generate dummies
Normality testing in binary variables (0/1)Hello I would like to know what would be the appropriate test/method to check the normality of a bin…
How to interpret the result of dummy1 "#" dummy2Dear all: My code is : Y = gender#father_farmer +X. I expect the result of 1 1 ;the question is why …
Drop - last observation in each rowHi Everyone, Is there a way (command/code) in Stata to drop the last "row-wise varlist" in each row…
Fixed-effects individual slopes with unbalanced data (reghdfe)Dear Stata users, I have a question regarding fixed-effects individual-slopes models, also known as…
Stationarity (unit root) and DCCE estimator (xtdcce2)?Dear members, In the case of DCCE estimator (xtdcce2), I got two unclear things: 1. one of the in…
Subscribe to:
Post Comments (Atom)
0 Response to PSM help: using observation # stubs to generate dummies
Post a Comment