Announcement

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

  • Bland Altman Graph

    Hi,
    Just started using stata 13
    I've created a Bland-Altman plot using the 'baplot' function, however, the axis labeling given is not detailed and ideally I'd like numbers at regular intervals.
    I've tried searching for a solution here but couldn't find one. Any help would be greatly appreciated.
    Many thanks,
    Sarah

    Click image for larger version

Name:	SJgraph.png
Views:	1
Size:	5.9 KB
ID:	1396746

  • #2
    baplot (SSC) is a user-written program written for Stata 6. It's a command, not a function.

    As of 6 June 2017, we are on Stata 15. The way this bites is that the graphics of baplot are ancient.
    And its help is out-of-date therefore.

    But in Stata >7

    Code:
    help gr7axes
    is relevant and something like

    Code:
    baplot y x, xla(0/6) yla(-6(2)8)
    will give you more axis labels. You don't tell us what your variables are called.

    Talking of grinding axes, I'd point to concord in the same territory which supports modern Stata graphics. The original paper in STB-43 is the fullest write up, but download from the files for SJ 10-4.

    search concord brings up this stuff (and some other stuff) but with a clickable link for SJ 10-4.

    Code:
    SJ-10-4 st0015_6  . . . . . . . . . . . . . . . .  Software update for concord
            (help concord if installed) . . . . . . . T. J. Steichen and N. J. Cox
            Q4/10   SJ 10(4):691
            update explicitly supporting plot() and addplot() and
            allowing systematic control of the reference line
    
    SJ-8-4  st0015_5  . . . . . . . . . . . . . . . .  Software update for concord
            (help concord if installed) . . . . . . . T. J. Steichen and N. J. Cox
            Q4/08   SJ 8(4):594
            dialog box modified to correct visual layout problems
    
    SJ-7-3  st0015_4  . . . . . . . . . . . . . . . .  Software update for concord
            (help concord if installed) . . . . . . . T. J. Steichen and N. J. Cox
            Q3/07   SJ 7(3):444
            now compatible with Stata 10; help file updated
    
    SJ-6-2  st0015_3  . . . . . . . . . . . . . . . .  Software update for concord
            (help concord if installed) . . . . . . . T. J. Steichen and N. J. Cox
            Q2/06   SJ 6(2):284
            updated for compatibility with Stata 9 by() option
    
    SJ-5-3  st0015_2  . . . . . . . . . . . . . . . .  Software update for concord
            (help concord if installed) . . . . . . . T. J. Steichen and N. J. Cox
            Q3/05   SJ 5(3):470
            minor bug fix for concord
    
    SJ-4-4  st0015_1  . . . . . . . . . . . . . . . .  Software update for concord
            (help concord if installed) . . . . . . . T. J. Steichen and N. J. Cox
            Q4/04   SJ 4(4):491
            rewritten to provide dialog, Stata 8 graphs, and two
            new tests
    
    SJ-2-2  st0015  . . . . . .  A note on the concordance correlation coefficient
            (help concord if installed) . . . . . . . T. J. Steichen and N. J. Cox
            Q2/02   SJ 2(2):183--189
            correction based on an erratum for Lin's concordance
            correlation coefficient, and assessment of the impact of
            the change
    
    sg84_3 from http://www.stata.com/stb/stb58
        STB-58 sg84_3.  Concordance correlation coefficient:  minor corrections /
        STB insert by Thomas J. Steichen, RJRT / Nicholas J. Cox, University of
        Durham, UK / Support:  [email protected], [email protected] / After
        installation, see help concord
    
    sg84_2 from http://www.stata.com/stb/stb54
        STB-54 sg84_2. Concordance correlation coefficient: update for Stata 6 /
        STB insert by Thomas J. Steichen, RJRT / Nicholas J. Cox, University of
        Durham, UK / Support:  [email protected] / After installation, see help
        concord
    
    sg84_1 from http://www.stata.com/stb/stb45
        STB-45 sg84_1.  Concordance correlation coefficient, revisited. / STB
        insert by / Thomas J. Steichen, RJRJ; / Nicholas J. Cox, University of
        Durham, UK. / Support:  [email protected] and [email protected] /
        After installation, see help concord.
    
    sg84 from http://www.stata.com/stb/stb43
        STB-43 sg84.  Concordance correlation coefficient. / STB insert by /
        Thomas J. Steichen, RJRT; / Nicholas J. Cox, University of Durham, UK. /
        Support:  [email protected] and [email protected] / After
        installation, see help concord.



    Comment


    • #3
      Great, that's sorted it thank you for your help.
      The only thing is that the circles marking the data points were larger where there was overlapping data (i.e. the dot at 0,0 is larger to denote multiple patients with those values), on the new graph the dots are all the same size. Do you know how to alter this back?
      Thanks again
      Sarah

      Comment


      • #4
        Great, that's sorted it thank you.
        The only thing is now the new graph does not have bigger circles/ dots to note multiple data points with the same mean difference/ average (i.e. previously the circle was bigger at 0,0)
        Do you know how I could change this back
        Thanks again
        Sarah

        Comment


        • #5
          There is no option in concord to use differing symbol sizes, if that is what you are asking. I might jitter points.

          Conversely on closer inspection it seems that your data are integers or perhaps even grades out of 10 or some such. See

          the thread started by http://www.stata.com/statalist/archive/2010-12/msg00478.html

          Section 6 in http://www.stata-journal.com/sjpdf.h...iclenum=gr0053
          for a write-up of my suggestion there

          http://www.statalist.org/forums/foru...updated-on-ssc for more on tabplot

          http://www.stata-journal.com/article...article=gr0066 for a write-up of tabplot
          Last edited by Nick Cox; 08 Jun 2017, 01:44.

          Comment


          • #6
            I am worried on your behalf about a point with average 4, difference 8.

            That implies one measurement or evaluation of 0 and one of 8.

            !!!

            If those are the answers, what is the question?

            Comment

            Working...
            X