Announcement

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

  • How to create a balance plot after weighting manually?

    I created weights for a difference-in-difference model and want to compare the correlations of the covariates with the treatment before and after weighting in a balance plot. Now, I did not use teffects, which is why tebalance does not work.

    How do I create a graph which shows the correlation coefficients of t1 (treatment) with all covariates (weighted vs non-weighted) in one balance plot? Maybe by using coefplot?

    As an example:
    t1 being the treatment variable
    bcoronajob* being the control variables which are used for weighting

    pwcorr t1 bcoronajob1w2 bcoronajob2w2 bcoronajob3w2 , star(0.1)
    pwcorr t1 bcoronajob1w2 bcoronajob2w2 bcoronajob3w2 [pweight=w_t1], star(0.1) // showing correlation coefficients, which I want to display in a graph

    Thanks in advance!
Working...
X