Skip to content

[R-meta] metafor rma results in table

3 messages · P. Roberto Bakker, Viechtbauer Wolfgang (STAT)

#
Hi,

How can I put rma result into a table?
I found xtable but could not see whether this is a suitable package for
metafor.
And to.table but it seems to be only suitable for escalc

Thanks in advance,

Roberto
#
Dear Roberto,

It depends on what parts of the output you want to put in a table. If you just want the "Model Results" part, then this will work:

xtable(coef(summary(res)))

where 'res' is an object returned by rma().

If you want a table that also includes further elements (e.g., tau^2, the Q-test, I^2, etc.; but where they should they go? As a 'footnote' below the table?), then somebody will have to write a method for xtable that handles rma objects in that manner.

Best,
Wolfgang
#
Dear Wolfgang,

Thank you for your quick response.
I will try it out.
The further elements I put them in forest plot through text(). I would be
also interesting by xtable. Would be nice if somebody could writte a
method.

Best,

Roberto

2018-01-30 11:48 GMT+01:00 Viechtbauer Wolfgang (SP) <
wolfgang.viechtbauer at maastrichtuniversity.nl>: