Announcement

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

  • How to fix when option is not allowed (r198)?

    Hello, I am currently using Stata/SE14.1 and I simply tried the following codes

    metan ln_HR ln_LCI ln_UCI, random hr label(namevar= author, yearvar= yearofpublication) forestplot( texts(100) title(Dabigatran vs Warf on stroke/SE) favours(Favor Dabigatran#Favor Warfarin))

    But I got the error message: option hr not allowed r(198);

    Is there anyway to fix this problem?

  • #2
    You cannot specify whatever options you feel appropriate. Whoever has programmed the command, has programmed certain options, and only those options are effective. Read the help file for the command you are using (-metan- here) to see what options are available.

    Comment


    • #3
      I don't see any info on metan in search or help.

      Comment


      • #4
        -metan- is user written command for meta analysis:

        Code:
        net describe metan, from(http://fmwww.bc.edu/RePEc/bocode/m)

        Comment


        • #5
          Thanks Joro.

          I don't see any "hs" option in metan help file. What is it's purpose?

          Comment


          • #6
            Presumably he wants the plot to be horizontal.


            If you really wanted to, you could go on the ado file and add it, but why? Why bother?

            Comment


            • #7
              Nana Liamsrijan
              Hello, I am the co-author and maintainer of the metan package. Sorry, I've only just seen your message.

              The code you supplied (including the hr option) looks fine to me; and, indeed, runs successfully on my machine using re-labelled example data.
              It could be that you are using an older version; the latest version (v4.06 12oct2022) is available via SSC by typing:
              Code:
              . ssc install metan
              (You may need to uninstall the older version first.)

              Best wishes,
              David.


              Comment

              Working...
              X