[R] metafor package
Viechtbauer Wolfgang (STAT)
wolfgang.viechtbauer at maastrichtuniversity.nl
Wed Feb 12 14:39:29 CET 2014
Good advice already from Michael and S Ellison.
I must apologize for the 'hack-job of a function' called forest() in metafor. I realized a while ago that people would prefer more fine-grained control over the various elements of the plot (this has come up a few times before). I think Paul Murrell described the issue best in his R Journal article:
http://journal.r-project.org/archive/2012-2/RJournal_2012-2_Murrell.pdf
But it is what it is at this point.
I noticed the problem with the dotted line of the credibility interval myself a while back. In an updated version of the metafor package (to be released at some point in the near future), there will at least be the possibility to control the color of that line. Maybe also the line type (a dotted line is indeed often too faint).
You can try changing efac=2 (or something larger than 1) to at least make the whiskers longer.
Best,
Wolfgang
--
Wolfgang Viechtbauer, Ph.D., Statistician
Department of Psychiatry and Psychology
School for Mental Health and Neuroscience
Faculty of Health, Medicine, and Life Sciences
Maastricht University, P.O. Box 616 (VIJV1)
6200 MD Maastricht, The Netherlands
+31 (43) 388-4170 | http://www.wvbauer.com
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> On Behalf Of Michael Dewey
> Sent: Wednesday, February 12, 2014 12:50
> To: Nathan Pace; r-help at R-project.org
> Subject: Re: [R] metafor package
>
> At 22:11 11/02/2014, Nathan Pace wrote:
> >Hi,
> >
> >I have a random effects meta analysis of a proportion (logit
> >transformation) using rma.glmm.
> >
> >I have created a forest plot of the proportion (inverse logic
> >transformation) using forest.rma.
> >
> >I have added the credibility interval.
> >
> >The forest plot is saved as a pdf.
> >
> >The dotted line and whiskers of the credibility interval are too faint.
> >
> >I need help on the argument(s) to widen the credibility interval
> >dots and whiskers.
> >
> >I have looked at the forest.default function, but don't see anything
> >obvious to me.
>
> Dear Nathan
> I think you need to look at forest.rma. There is a fairly obvious
> section (search for addcred). If worst comes to worst you can always
> hack it and save as nathansforest.rma.
>
> >Nathan
> >
> >--
> >Nathan Pace, MD, MStat
> >Department of Anesthesiology
> >University of Utah
> >801.581.6393
> >n.l.pace at utah.edu
> >
> > [[alternative HTML version deleted]]
>
> Michael Dewey
> info at aghmed.fsnet.co.uk
> http://www.aghmed.fsnet.co.uk/home.html
More information about the R-help
mailing list