itchyshin / orchard_plot

Introducing the Orchard Plot for Meta-analysis
15 stars 4 forks source link

rma.uni models not supported #6

Closed kylehamilton closed 3 years ago

kylehamilton commented 3 years ago

When trying to use an rma.uni model the orchard_plot() function throws and error saying that the object must be rma.mv or rma.

library(orchaRd) library(patchwork) library(tidyverse) library(metafor)

dat <- dat.normand1999 dat <- escalc(measure="MD", m1i=m1i, sd1i=sd1i, n1i=n1i, m2i=m2i, sd2i=sd2i, n2i=n2i, data=dat)

res <- rma(yi, vi, data=dat) res

class(res) [1] "rma.uni" "rma"

orchard_plot(res, mod = "Int") Error in mod_results(object, mod = "Int") : Sorry, you need to fit a metafor model of class rma.mv or rma