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
[R-meta] metafor rma results in table
3 messages · P. Roberto Bakker, Viechtbauer Wolfgang (STAT)
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
-----Original Message----- From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces at r- project.org] On Behalf Of P. Roberto Bakker Sent: Tuesday, 30 January, 2018 8:09 To: r-sig-meta-analysis at r-project.org Subject: [R-meta] metafor rma results in table 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 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>:
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
-----Original Message----- From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces at r- project.org] On Behalf Of P. Roberto Bakker Sent: Tuesday, 30 January, 2018 8:09 To: r-sig-meta-analysis at r-project.org Subject: [R-meta] metafor rma results in table 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