Announcement

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

  • using psgraph as postestimation command for psmatch2

    Hi All,

    I am hoping someone can help me.
    I am using psgraph to plot a histogram following psmatch2 to assess for covariate balance
    However I would like to compare the histogram before and after matching to show graphically the impact of the matching process.

    My code is as follows:



    psmatch2 ind alter sex i.volq i.charlindex i.imddecile , outcome(readmission) neighbor (1) caliper (0.001) ate common

    pstest

    psgraph

    Does anyone have any suggestions?
    Thank you in advance!


  • #2
    Code:
    psmatch2 ind alter sex i.volq i.charlindex i.imddecile , outcome(readmission) neighbor (1) caliper (0.001) ate common
    pstest, both graph  // bias before and after matching
    pstest, both scatter  // bias and variance ratio before and after matching

    Comment


    • #3
      thank you, that's helpful, but I can't seem to find the option that would show a graph for the propensity score matching before and after. I've got after using psgraph, as attached.
      However pstest graph or pstest hist, is just showing the proportion of variance
      Attached Files

      Comment


      • #4
        It seems -psmatch2- cannot automatically generate the graph you needed. You may turn to another command -teffects psmatch-. After implementing matching with -teffects psmatch-, you may use -tebalance density- to generate distributions of p-scores of the two groups, before and after matching. The only difference is that they are lines of density, not bars as in #3. Below is an example.

        Click image for larger version

Name:	Graph.png
Views:	1
Size:	436.0 KB
ID:	1671744

        Comment


        • #5
          Originally posted by Fei Wang View Post
          Code:
          psmatch2 ind alter sex i.volq i.charlindex i.imddecile , outcome(readmission) neighbor (1) caliper (0.001) ate common
          pstest, both graph // bias before and after matching
          pstest, both scatter // bias and variance ratio before and after matching
          Dear Fei, Kindly give us the procedure that how to match sample on a specific variable or variables?
          Warms regard

          Comment

          Working...
          X