Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exact matching on Propensity Score Matching

    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!

  • #2
    Code:
    ssc install kmatch, replace
    kmatch ps treatment con1 con2 con3 (outcomevar), ematch(gender) comsup
    kmatch sum
    Best wishes

    (Stata 16.1 MP)

    Comment

    Working...
    X