Announcement

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

  • intervalplot

    I'm trying to use intervalplot with summary estimates as variables in the dataset. The following is my data.

    Code:
    str7 treatment float(lnOR LCI_lnOR UCI_lnOR)
    "a" 1.029 .599 1.654
    "b" 1.361 .778 2.194
    "c"  .716 .374 1.249
    "d"  .818 .558 1.155
    "e"  1.14 .641 2.677
    "f"  .725 .356 1.322
    "g"  .843 .453 1.435
    "h"  .562 .241  1.14
    "i"  .638 .351 1.087
    end

    Then I typed the order.

    Code:
    . intervalplot lnOR LCI_lnOR UCI_lnOR , nomvmeta lab( treatment)
    >10 invalid name
    r(198);
    What does ">10 invalid name" mean?

    Thank you.

  • #2
    When I copy and paste the code below, it works like a charm in my Stata 14.

    Code:
     clear
     input str7 treatment float(lnOR LCI_lnOR UCI_lnOR)
    "a" 1.029 .599 1.654
    "b" 1.361 .778 2.194
    "c"  .716 .374 1.249
    "d"  .818 .558 1.155
    "e"  1.14 .641 2.677
    "f"  .725 .356 1.322
    "g"  .843 .453 1.435
    "h"  .562 .241  1.14
    "i"  .638 .351 1.087
    end  
     intervalplot lnOR LCI_lnOR UCI_lnOR , nomvmeta lab( treatment)

    Comment


    • #3
      It's my fault. I used the dataex to export the data, and may make a mistake in copying it.

      Code:
      * Example generated by -dataex-. To install: ssc install dataex
      clear
      input str7 treatment float(lnOR LCI_lnOR UCI_lnOR)
      "a" 1.029 .599 1.654
      "b" 1.361 .778 2.194
      "c"  .716 .374 1.249
      "d"  .818 .558 1.155
      "e"  1.14 .641 2.677
      "f"  .725 .356 1.322
      "g"  .843 .453 1.435
      "h"  .562 .241  1.14
      "i"  .638 .351 1.087
      end

      Comment

      Working...
      X