Dear Stata Forum,
I’m trying to perform a Propensity Score Matching with exact matching but found most examples on years using double, which is not my case.
I have a dataset of 2345 children, I want to do exact matching on a series of cofounders X based on binary variable: Gender.
after that I want to do the propensity score matching on the same cofounders X based on Treatment.
Can anyone help me with the code?
Just a plain sample, for just PSM it should be
logit treat X
predict ps
or
pscore treat X, pscore (ps)
psmatch2 treat, out (results) pscore (ps) common
but how to add the binary gender as the criteria for exact matching is really confusing me.
Also how can obtain the pstest results for females and males separately? Does it allow for “if” command?
thank you all very much!
0 Response to Exact matching on Propensity Score Matching
Post a Comment