Announcement

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

  • metan forest plot - how to display individual p value for each study

    Hi all,

    I really want to display the p value next to the effect size and the confidence interval for each study in the forest plot, I cant figure out a way to do it! Can anyone please help?

    much thanks in advance

  • #2
    Dear Y T Wang,

    The easiest way to achieve this is probably to manually calculate the p-values from the effect sizes and confidence intervals, store them in a new variable, and add it to the forest plot using the option rcols().

    Note that p-values for individual studies are not typically displayed in the forest plot, which is (I think partly) why metan is not set up to do this automatically.

    Best wishes,

    David.

    Comment


    • #3
      Originally posted by David Fisher View Post
      Dear Y T Wang,

      The easiest way to achieve this is probably to manually calculate the p-values from the effect sizes and confidence intervals, store them in a new variable, and add it to the forest plot using the option rcols().

      Note that p-values for individual studies are not typically displayed in the forest plot, which is (I think partly) why metan is not set up to do this automatically.

      Best wishes,

      David.
      Sir, I was trying to add p-value to the forest plot, and I could not add the variable by entering the command "rcols()", how should I do it the right way? Thanks for your time.

      Click image for larger version

Name:	Capture1.PNG
Views:	2
Size:	23.4 KB
ID:	1630413

      Click image for larger version

Name:	2.PNG
Views:	1
Size:	11.8 KB
ID:	1630414
      Attached Files

      Comment


      • #4
        rcols() is an option. You add options after the comma in the main command, so it’s more like

        Code:
        metan hr lower upper, … rcols(pvalue)
        Be aware that it can be very hard to answer a question without sample data. You can use the dataex command for this. Type help dataex at the command line.

        When presenting code or results, please use the code delimiters format them. Use the # button on the formatting toolbar, between the " (double quote) and <> buttons.

        Comment

        Working...
        X