R Metafor 森林图研究标签
我有一个包含三个子组的森林图,每个子组的一个级别来自同一研究。在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
I have a forest plot with three subgroups and one level of each subgroup comes from the same study. Within escalc I'm using slab=paste(study) and this places the correct labels in the forest plot, but since studies are repeated they are being ended with authoryear.1, authoryear.2, authoryear.3, etc. The forest plot looks like:
Group North
Smith 2021.1
Reed 2019.1
Group Central
Smith 2021.2
Reed 2019.2
Group South
Smith 2021.3
Reed 2019.3
What I want is...
Group North
Smith 2021
Reed 2019
Group Central
Smith 2021
Reed 2019
Group South
Smith 2021
Reed 2019
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,
escalc()
强制研究标签是唯一的。但是您可以使用forest()
函数的slab
参数来指定研究标签,并且它们将按原样使用。Indeed,
escalc()
enforces that study labels are unique. But you can use theslab
argument of theforest()
function to specify the study labels and they will be used as is.