Metaprop森林图标题更改

owfi6suc  于 2023-05-26  发布在  其他
关注(0)|答案(1)|浏览(160)

我在用R语言中的metaprop做一个比例的元分析。我试图使我的最终森林图看起来更好,但一直有问题,删除标题“共同效应模型”,甚至重命名为传统的“固定效应模型”。我已经看过标签的代码,可能是正确的,也在谷歌,但不能找到任何人有类似的问题。任何帮助将不胜感激。

pes.summary=metaprop(cases,total,authoryear,data=dat,sm="PLO",method.ci="NAsm",method.tau="DL",incr=0.5,allincr=FALSE,addincr=FALSE,title="")
png("forestplotMassDXA.png",width=800,height=1200)
forest(pes.summary,
       xlim = c(0,1), pscale =1, 
       rightcols=c("effect", "ci","w.random"),
       rightlabs=c("Proportion", "95% C.I.","Weights"),
       leftcols = c("studlab", "event", "n"), 
       leftlabs = c("Study", "Successful", "Total"),
       xlab = "Proportion", 
       fs.xlab=12,
       fs.study=12,
       fs.study.lables=12,
       fs.heading=12,
       squaresize = 0.5, col.square="navy", col.square.lines="navy",
       col.diamond="navy", col.diamond.lines="navy",
       comb.fixed=FALSE,
       lty.fixed=0,
       lty.random=2, 
       Modality.study="square",
       type.random="diamond",
       ff.fixed="bold.italic",
       ff.random="bold.italic",
       hetlab = "Heterogeneity:",
       fs.hetstat=8,
       smlab="",
       print.Q=TRUE,
       print.pval.Q=TRUE,
       print.I2=TRUE,
       print.tau2=FALSE,
       col.by="black")

[How我的森林图看起来] [1]:https://i.stack.imgur.com/arkDK.png

6ioyuze2

6ioyuze21#

不确定你是否还需要这个,但是要删除它,你可以在命令中添加common = FALSE,所以它看起来像这样:

forest(pes.summary,
       xlim = c(0,1), pscale =1, 
       rightcols=c("effect", "ci","w.random"),
       rightlabs=c("Proportion", "95% C.I.","Weights"),
       leftcols = c("studlab", "event", "n"), 
       leftlabs = c("Study", "Successful", "Total"),
       xlab = "Proportion", 
       fs.xlab=12,
       fs.study=12,
       fs.study.lables=12,
       fs.heading=12,
       squaresize = 0.5, col.square="navy", col.square.lines="navy",
       col.diamond="navy", col.diamond.lines="navy",
       comb.fixed=FALSE,
       lty.fixed=0,
       lty.random=2, 
       Modality.study="square",
       type.random="diamond",
       ff.fixed="bold.italic",
       ff.random="bold.italic",
       hetlab = "Heterogeneity:",
       fs.hetstat=8,
       smlab="",
       print.Q=TRUE,
       print.pval.Q=TRUE,
       print.I2=TRUE,
       print.tau2=FALSE,
       col.by="black",
       common = FALSE)

但是将其更改为常规的Fixed-effect model是另一回事。我很想知道是否有人设法做了这件事

相关问题