Announcement

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

  • changing the value of the xaxis in scatter plot and lfit

    Hello there , with the help of your replies here I created a martingale residual graph
    https://www.statalist.org/forums/for...n-scatter-plot

    As seen here

    Click image for larger version

Name:	Screenshot 2023-10-05 at 11.13.45.png
Views:	1
Size:	440.6 KB
ID:	1729194


    However, I wanted to change the x axis so I won't have waste of space from 10 - 15

    So I used this

    Code:
    scatter dev0 dev1 xb, xlabel(0[0.5]5) || lfit dev _t, legend(order(1 2))
    I then got this graph - not entirely what I wanted. can you pls enlighten me how I can improve my code pls?
    Click image for larger version

Name:	Screenshot 2023-10-05 at 11.13.16.png
Views:	1
Size:	397.8 KB
ID:	1729195



  • #2
    Code:
    if xb < 4

    Comment


    • #3
      Hi tried this, still get the same graph as the first one in post 1....

      Comment


      • #4
        Noted. Unfortunately I don't do this kind of thing. Perhaps the idea of plotting against both xb and _t doesn't make sense. You need survival experts to comment and -- given that you asked this question before and didn't get an answer -- you may need to back up and give us a reproducible example with enough data and code to show the problem.

        Comment

        Working...
        X