1

我不知道为什么,但是在尝试生成森林图时我不断收到错误消息:

forest.default(sgame) 中的错误:必须指定“vi”、“sei”或(“ci.lb”、“ci.ub”)对。

我在网上广泛地寻找并试图弄清楚,但没有任何运气。但是,我让其他人在他们的计算机上运行代码,它似乎对他们有用,并生成了一个森林图。也许我错误地安装了软件包。

每当我运行 metacont() 函数时,我总是在控制台中得到结果,但它搞砸的地方是生成森林图。这是代码:

library(meta)
library(metafor)
library(dmetar)

Constant

str(Constant)
summary(Constant)

metafinal <- metacont(Ne, Me, Se, Nc, Mc, Sc, data = Constant,
                      studlab = paste(Author), comb.fixed = FALSE,
                      comb.random = TRUE, hakn = TRUE,
                      prediction = FALSE,label.left = "Favors control",
                      label.right = "Favors intervention", sm = "MD")
metafinal

#This is the trouble step where the error occurs
forest(metafinal, layout = "RevMan5", digits.sd = 2)

sgame <- subgroup.analysis.mixed.effects(x=metafinal, subgroups = Constant$Subgroup)

sgame

forest(sgame)
4

0 回答 0