[R] Sensitivity and Specificity Forest Plots
Viechtbauer Wolfgang (STAT)
wolfgang.viechtbauer at maastrichtuniversity.nl
Tue Nov 22 11:06:58 CET 2011
Essentially, this is a side-by-side forest plot, where the plot on the left is for sensitivity and the plot on the right is for specificity. For 2x2 table data from diagnostic studies, it is easy to calculate the sensitivity and specificity values (and corresponding sampling variances) by hand. In fact, since sensitivity and specificity values are actually simply proportions, you can use the escalc() function in the metafor package to do this for you (just pass the appropriate cell counts to escalc() and use one of the outcome measures listed under "Proportions and Transformations Thereof" -- see help(escalc). Then, you could set up a plotting device with layout() and put the forest plot for sensitivity on the left and the plot for specificity on the right. So, everything is already there to do this.
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
6200 MD Maastricht, The Netherlands
+31 (43) 368-5248 | 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 Jonathan Minton
> Sent: Monday, November 21, 2011 17:34
> To: r-help at r-project.org
> Subject: [R] Sensitivity and Specificity Forest Plots
> Dear R Users,
> Do you know of an existing function that allows the production of
> sensitivity and specificity forest plots?
> See the following for an example:
> The standard meta-analysis packages (metafor etc) do not seem to have this
> type of forest plot.
> If I were to construct a bespoke function within R, would you recommend
> using the forest function within metafor, or the dotplot function within
> lattice, or something else entirely as a starting point for constructing
> the function?
> Many thanks,
> Dr Jon Minton
> Decision Support Unit
> Health Economics & Decision Science
> School of Health and Related Research
> University of Sheffield
> Tel: 0114 222 0836
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help