Announcement

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

  • Coefplot for balance check of treatments

    Hi,

    I am trying to use coefplot command to see the balance of the "regression outcomes" on four treatments. However, the coefplot command is grouping by "outcomes" rather than treatments.
    Here is my regression:

    Code:
    reg outcome1 treat1 treat2 treat3 treat4, noc
    est stores outcome1
    
    reg outcome2 treat1 treat2 treat3 treat4, noc
    est stores outcome2
    
    coefplot (outcome1) (outcome2)

    In the first picture below, the y-axis values are four treatments rather than the two outcomes (dependent variables).

    Click image for larger version

Name:	treatbalance_coefplot.png
Views:	1
Size:	31.7 KB
ID:	1689094



    I would like to have outcomes in the y-axis and group the coefficients by treatments as in the 2nd attached picture below.
    Click image for larger version

Name:	balance_check_plot.png
Views:	1
Size:	113.4 KB
ID:	1689095



    Is that possible with coefplot command? Or what are the alternative options?

    Thanks in advance!
    Last edited by Ei Thandar Myint; 11 Nov 2022, 21:42.
Working...
X