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
Guidance on Multilevel ModelingHello everyone, I am working towards building a statistical model that predicts basic income prefer…
Storing values of a multivariate regressionHi Statalist! I have a panel data set with multiple variables (X1, X2, ...). I am trying to run a m…
Duplicates list full pieces of observationsHi Statalisters, Just have a simple question. If my dataset contains variable v1, v2, and v3, I use…
[HELP] Destring Variables DilemaHello Statalist -- Hope everyone is doing well. I am currently cleaning a dataset and am stumbling …
I want to run a VAR with bootstrap standard errorsI want to run a VAR(1) with both OLS standard errors and bootstrap standard errors which are compute…
Subscribe to:
Post Comments (Atom)
0 Response to PSM help: using observation # stubs to generate dummies
Post a Comment