Announcement

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

  • haw to make tp fp fn tn on left of accuracy forest plot ?

    hello , I am a new one for stata ,and i was doing a accuracy analysis ,after my code running ,I got the left picture below (green) ,but i want to have forest plot with orginal data(tp fp fn tn) like the right picture(red ) below.
    here is my codes:
    madas tp fp fn tn, id (ref ) ford fors bfor(dss)
    here are studies:
    ref tp fp fn tn
    Hazelton 2015 28 0 8 166
    Hurtado 2015 30 0 2 61
    Jokela 2015 28 2 7 103
    Nguyen 2016 30 0 2 64
    Nie 2014 79 0 29 248
    Nolte 2016 56 1 21 51
    Riazo 2017 30 0 2 64
    Young 2017 16 1 13 57
    Click image for larger version

Name:	picture-1.png
Views:	2
Size:	7.8 KB
ID:	1477563
    Click image for larger version

Name:	picture-2.jpg
Views:	1
Size:	32.8 KB
ID:	1477564

  • #2
    For anyone familiar with the user-written midas (not madas as mistyped above) package, here is the corrected command, and the accompanying data, presented with dataex and re-ordered to more-or-less match the order shown in the first (green) picture in post #1, except that three of the eight observations in the picture are for different ids than appear in the data, and the calculated results are all different, suggesting that the data sample in post #1 is incomplete, or that some other code not shown to us was run before the midas command. Since I know nothing about the midas command I've done about as much as I can.
    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input str20 ref float(tp fp fn tn)
    "Nolte"    2016 56 1 21
    "Young"    2017 16 1 13
    "Hazelton" 2015 28 0  8
    "Riazo"    2017 30 0  2
    "Hurtado"  2015 30 0  2
    "Nie"      2014 79 0 29
    "Nguyen"   2016 30 0  2
    "Jokela"   2015 28 2  7
    end
    midas tp fp fn tn, id (ref) ford fors bfor(dss)

    Comment


    • #3
      Thanks william .But,it Not works. yeah, I mistyped that code The first picture (green ) one comes from my data ,and the red one I just screenshoted from some papers .BUT,seems codes(@ william ,I don't know how to @ someone here did not work .Here what I want to say is how to make my forest plot looks like the red one (with study tp fp fn tn sensitivity[95% CI] sensitivity(95% CI) on it )
      i.e like this :
      Click image for larger version

Name:	11.jpg
Views:	1
Size:	46.3 KB
ID:	1477733

      Comment


      • #4
        Originally posted by William Lisowski View Post
        For anyone familiar with the user-written midas (not madas as mistyped above) package, here is the corrected command, and the accompanying data, presented with dataex and re-ordered to more-or-less match the order shown in the first (green) picture in post #1, except that three of the eight observations in the picture are for different ids than appear in the data, and the calculated results are all different, suggesting that the data sample in post #1 is incomplete, or that some other code not shown to us was run before the midas command. Since I know nothing about the midas command I've done about as much as I can.
        Code:
        * Example generated by -dataex-. To install: ssc install dataex
        clear
        input str20 ref float(tp fp fn tn)
        "Nolte" 2016 56 1 21
        "Young" 2017 16 1 13
        "Hazelton" 2015 28 0 8
        "Riazo" 2017 30 0 2
        "Hurtado" 2015 30 0 2
        "Nie" 2014 79 0 29
        "Nguyen" 2016 30 0 2
        "Jokela" 2015 28 2 7
        end
        midas tp fp fn tn, id (ref) ford fors bfor(dss)
        oh ,seems like I found the right place to re-quest :)

        Thanks william .and sorry to have you confused . yeah, I mistyped that code The first picture (green ) one comes from my data ,and the red one I just screenshoted from some papers .Here what I want to say is how to make my forest plot looks like the red one (with study tp fp fn tn sensitivity[95% CI] sensitivity(95% CI) specificity[95% CI] specificity(95% CI) on it )

        i.e like this( mind the red-box ) :
        Click image for larger version

Name:	12.jpg
Views:	1
Size:	47.8 KB
ID:	1477748

        Comment

        Working...
        X