Announcement

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

  • changing xaxis with -pbalchk- command

    Hi I would like to change the axis for -pbalchk-

    with this code:
    Code:
    pbalchk $treatment $xlist,wt(attweight) graph
    I obtained the following graph - the reference lines are inserted at -0.10 and +0.10 (standardized mean differences for propensity scores) - this I think is automatically coded in the ado file
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	23.4 KB
ID:	1729534

    I then tried to fit the reference lines within the graph by manually changing the scale using the graph editor for which I obtained this graph, which brings the reference lines into the graph but squashed the numerical numbers to the left.

    Click image for larger version

Name:	Capture2.PNG
Views:	1
Size:	19.6 KB
ID:	1729535



    I then tried with code:
    Code:
    pbalchk $treatment $xlist, wt(attweight) graph, xlabel(-0.1(0.05).20) xmtick(-0.1(0.05).20)
    Does anyone have any better solutions?
    I thought of contacting the author of the code but perhaps will try here first

  • #2
    Hello all, just in case for anyone who has this problem. I contacted the author of the code:

    The vertical lines are produced by the option “xline()”. If you don’t give this option, it produces lines at -0.1, 0 and 0.1 (if you are using standardised differences). However, you can give any values you want


    Comment

    Working...
    X