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!
Related Posts with Exact matching on Propensity Score Matching
Help in 'moving common' commandI have an unbalanced panel, say firms over years, each firm has a variable of interest. I would like…
Merge m:1 using participant ID in matched case-control data - error messagesHi, I have a matched case control dataset with 3 controls to every case. I have data that I want to…
Problem when running loops with forvalues command: error message: `i' invalid nameDear Statalist, I got a problem with running a loop. I give you my whole code, so you can see how v…
Renaming group of variables as varHello, Can anyone advise how to rename a group as variables as simply var1 var2 var3 etc. Currentl…
Collapsing time variableHello all, I am quite new to stata and I need help with a simple question (I think), that I just ca…
Subscribe to:
Post Comments (Atom)
0 Response to Exact matching on Propensity Score Matching
Post a Comment