Skip to content
Back to formatted view

Raw Message

Message-ID: <QB1PR01MB29474FE8F8D121501DDFEEB5A4A60@QB1PR01MB2947.CANPRD01.PROD.OUTLOOK.COM>
Date: 2021-01-16T20:36:32Z
From: Dylan Johnson
Subject: [R-meta] Displaying Subgroups in Forest Plot
In-Reply-To: <95f0604581f542258bfcc09357fb73a0@UM-MAIL3214.unimaas.nl>

Hi Wolfgang,



Thanks, that did the trick!



Best,

Dylan



Dylan Johnson, MSc

MA Student, School and Clinical Child Psychology
Department of Applied Psychology and Human Development

University of Toronto
252 Bloor Street West

Toronto, ON M5S 1V6



From: Viechtbauer, Wolfgang (SP)<mailto:wolfgang.viechtbauer at maastrichtuniversity.nl>
Sent: January 16, 2021 1:25 PM
To: Dylan Johnson<mailto:dylanr.johnson at mail.utoronto.ca>; r-sig-meta-analysis at r-project.org<mailto:r-sig-meta-analysis at r-project.org>
Subject: RE: Displaying Subgroups in Forest Plot



EXTERNAL EMAIL:

Hi Dylan,

escalc() and model fitting functions like rma() and rma.mv() really want unique study labels, so if there are duplicates in slab, those numbers are automatically added.

However, if you specify 'slab' as part of the forest() call, then it won't do this.

Best,
Wolfgang

>-----Original Message-----
>From: Dylan Johnson [mailto:dylanr.johnson at mail.utoronto.ca]
>Sent: Saturday, 16 January, 2021 18:14
>To: Viechtbauer, Wolfgang (SP); r-sig-meta-analysis at r-project.org
>Subject: RE: Displaying Subgroups in Forest Plot
>
>Thanks all - I have been following that code Wolfgang and it is coming
>together.
>
>One issue I am having is that I have repeating author names and dates along
>the column in the forest plot where r is automatically adding a serial
>number to the end:
>
>Johnson, 2018.1
>Johnson, 2018.2
>Johnson, 2018.3
>
>Is there any way to remove that?
>
>Dylan Johnson, MSc
>MA Student, School and Clinical Child Psychology
>Department of Applied Psychology and Human Development
>University of Toronto
>252 Bloor Street West
>Toronto, ON M5S 1V6
>
>From: Viechtbauer, Wolfgang (SP)
>Sent: January 16, 2021 4:50 AM
>To: Dylan Johnson; r-sig-meta-analysis at r-project.org
>Subject: RE: Displaying Subgroups in Forest Plot
>
>EXTERNAL EMAIL:
>
>Dear Dylan,
>
>There is a pretty coprehensive example here:
>
>http://www.metafor-project.org/doku.php/plots:forest_plot_with_subgroups
>
>This should be fairly easy to adapt to the case where rma.mv() is used for
>model fitting.
>
>Best,
>Wolfgang

	[[alternative HTML version deleted]]