[R-meta] metafor rma results in table

P. Roberto Bakker robertobakker at gmail.com
Fri Feb 2 16:20:46 CET 2018


Dear Michael,

Thank you for your response.
I never wrote a wrapper, but was planning already to get experience. I
suppose R programming?

Best,
 Roberto

2018-02-01 16:35 GMT+01:00 Michael Dewey <lists at dewey.myzen.co.uk>:

> Dear Roberto
>
> I think it is possible to do this but I wonder whether xtable for all its
> virtues is suited to this sort of task where you have some highly
> structured data and also some oddments. You might find it best to write
> your own wrapper which uses Wolfgang's suggestion for the model results and
> then concatenate which oddments you want.
>
> Michael
>
>
> On 30/01/2018 13:38, P. Roberto Bakker wrote:
>
>> 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
>>>>
>>>
>>>
>>         [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-meta-analysis mailing list
>> R-sig-meta-analysis at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis
>>
>>
> --
> Michael
> http://www.dewey.myzen.co.uk/home.html
>

	[[alternative HTML version deleted]]



More information about the R-sig-meta-analysis mailing list