Skip to content
Prev 353855 / 398506 Next

Metafor and forest(); not showing 'ilab' and text

I tried to upload the file once again. I tweaked it a bit, now my code is:

forest(pc, var, ci95m, ci95p, slab = authoryear, psize=1, subset=(pub==1),
       xlim = c(-16, 6),
       ilab = cbind(SIMdv, SIMiv),
       ilab.xpos = c(-7.5, -5.5), cex = 0.75)
op <- par(cex=.75, font=2)
      text(c(-7.5, -5.5), 54, c("DV", "IV"))
      text(-16,                54, "Author(s) and Year",     pos=4)
      text(6,                  54, "Outcome [95% CI]", pos=2)
par(op)

I managed to show both the Ilab argument and the text above. I still
have 3 issues:
- now the forest plot is too narrow - that is, pretty unreadable;
- I cannot still export it properly, as shown in the enclosed .png
- SIMdv, SIMiv are shown as number while on mine .csv are actually
text variable.

regarding the rma.mv package, I set it up this way (preliminarily)

multi <- rma.mv(pc, var, random = ~ 1 | author, data=codebook)

I'm trying to compare the results with this equation, which is what -
I think, correct me if I'm wrong -  in econometrics we call
author-fixed effect, that is, model which are constant across
individuals (the random\fix notation is a bit tricky):

author_fix <- rma(pc, var, mods = ~ I(author), data=codebook, method="ML")

What I was wondering if that the two equation above mentioned also
correct for heteroskedasticity which I need since my studies have
different sample and specifications.

Thanks for your help, your patience and your time, and many
compliments for the package, is guiding me through the use of R for
the first time - as you might have guessed.

Marco


On 24 August 2015 at 16:50, Viechtbauer Wolfgang (STAT)
<wolfgang.viechtbauer at maastrichtuniversity.nl> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rplot.png
Type: image/png
Size: 105241 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20150824/7e75b138/attachment.png>