Announcement

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

  • plotting estimates & 95% CI

    How can I plot series of estimates and their confidence interval to look like this attached image. I want to test confidence intervals for non-inferiority and want to represent graphically and make a xline at -10

    example data is:
    clear
    input str (ant) long(e ub lb)
    a -5 -11 1
    b 2 -5 4
    c 11 8 15
    end
    Attached Files

  • #2
    A very crude version of that plot can be achieved using the following code:
    Code:
    ssc install metan
    clear
    input id e ub lb
    1 -5 -11 1
    2 2 -5 4
    3 11 8 15
    end
    metan e ub lb , force null(0) nooverall xline(-10)
    You can use -metan- (help metan) options to make it prettier and to your liking.

    Comment


    • #3
      A more customizable option would be coefplot.

      Code:
      ssc install coefplot
      clear
      input id e ub lb
      1 -5 -11 1
      2 2 -5 4
      3 11 8 15
      end
      
      mkmat e ub lb, matrix(C)
      matrix C = C'
      coefplot matrix(C), ci((2 3))

      Comment

      Working...
      X