【问题标题】:R Metafor forest plot study labelsR Metafor 森林图研究标签
【发布时间】:2022-12-15 12:51:32
【问题描述】:

我有一个包含三个子组的森林图,每个子组的一个级别来自同一研究。在 escalc 中,我使用 slab=paste(study) 并将正确的标签放置在森林图中,但由于重复研究,它们以 authoryear.1、authoryear.2、authoryear.3 等结束。森林图好像:

Group North
Smith 2021.1
Reed 2019.1

Group Central
Smith 2021.2
Reed 2019.2

Group South
Smith 2021.3
Reed 2019.3

我想要的是...

Group North
Smith 2021
Reed 2019

Group Central
Smith 2021
Reed 2019

Group South
Smith 2021
Reed 2019

【问题讨论】:

  • 您能否使用dput(df)分享数据?

标签: r forestplot metafor


【解决方案1】:

事实上,escalc() 强制研究标签是唯一的。但是您可以使用 forest() 函数的 slab 参数来指定研究标签,它们将按原样使用。

【讨论】:

    【解决方案2】:

    我尝试了 slab 参数,但它仍然没有显示研究名称......

    
    forest(meta1, 
           header= "Author(s), Year",
           xlab="Correlation coefficient",
           slab=paste(meta1$author, meta1$year, sep = ","),
           weight.study = "random")
    
    

    知道问题出在哪里吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-12
      • 1970-01-01
      相关资源
      最近更新 更多