Skip to content
Prev 5406 / 5636 Next

[R-meta] Metafor - regplot() for a categorical (and interaction) variable

Emanuel,

Wolfgang's response is spot on. A shorter alternative might be to try the
following.

Reza

dat <- escalc(measure="RR", ai=tpos, bi=tneg,
              ci=cpos, di=cneg, data=dat.bcg)

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

grd <- emmprep(res) # check out metafor's documentation

emmeans::emmip(grd, ~alloc, CIs=TRUE)  # check out emmeans' documentation


On Sat, Sep 7, 2024 at 7:04?AM Viechtbauer, Wolfgang (NP) via
R-sig-meta-analysis <r-sig-meta-analysis at r-project.org> wrote:

            

  
  
Message-ID: <CAKt3tz=oMvgOGL-Q0u0SjC8ku7muufCa=OyAk6SfEcrAYDAagA@mail.gmail.com>
In-Reply-To: <AS8PR08MB919381E6BC46DC2C1729CC558B9F2@AS8PR08MB9193.eurprd08.prod.outlook.com>