Skip to content
Prev 3858 / 5636 Next

[R-meta] Appending a risk-of-bias traffic-light plot to a 'three-level' forest plot

Dear Josh,

See below for my responses.

Best,
Wolfgang
I would suggest to do the following:

1) Use the 'contain' method for computing the dfs:

res <- rma.mv(yi, vi, random = ~ 1 | author/outcome, data = dat, test = "t", dfs = "contain",
              method = "REML", slab = author)

2) Then use test="t" for rma():

rma(yi, vi, data=sav, test="t")

Then the results match up exactly.
The first. If you want to show a forest plot of the aggregated data, then the aggregation involves adding the within-study variance (as you have done) and hence the CI will be wider also for study 6.
Can't help with this.
Again, can't really help with robvis.

As an alternative, you could also consider creating the traffic light part of the plot yourself. Then you have full control over what is shown and how. An example where I did this can be found here:

https://www.metafor-project.org/doku.php/plots:forest_plot_revman
In forest(), see argument 'header'.
In forest(), see argument 'xlab'.
In forest(), you can use the 'textpos' argument to create space to the right of the annotations and then add this column either via the 'ilab' argument or with text(). In fact, the link above demonstrates this.