The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:labbe_plot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plots:labbe_plot [2023/10/22 13:50] Wolfgang Viechtbauerplots:labbe_plot [2024/04/18 14:17] (current) Wolfgang Viechtbauer
Line 3: Line 3:
 ==== Description ==== ==== Description ====
  
-In a L'Abbé plot (based on L'Abbé, Detsky, & O'Rourke, 1987), the arm-level outcomes for two experimental groups (e.g., treatment and control group) are plotted against each other. In the example below, the points show the log risk (of a tuberculosis infectionin the treatment (x axis) and control (y axis) group. Points falling on the solid diagonal line represent studies where the risk of infection did not differ between the two groups. Points falling below this line represent studies where the risk was lower in the treated (vaccinated) group. The dashed line indicates the estimated effect based on the fitted model (which is linear on the log scale for the log risk ratio). The size of the points is an inverse function of the precision of the estimates (so larger points correspond to more precise estimates).+In a L'Abbé plot (based on L'Abbé, Detsky, & O'Rourke, 1987), the arm-level outcomes for two groups (e.g., treatment and control groups) are plotted against each other. The example below is based on a meta-analysis examining the effectiveness of a particular treatment (topical plus systemic antibiotics) for preventing respiratory tract infections. Since the meta-analysis is conducted with log odds ratios, the points in the first plot show by default the log odds of a respiratory tract infection in the control group (on the x-axis) versus the treatment group (on the y-axis). Points falling on the solid diagonal line represent studies where the log odds of infection did not differ between the two groups. Points falling below this line represent studies where the log odds were lower in the treated group compared to the control group. The dashed line indicates the estimated effect based on the fitted model (which is linear on the log odds scale). The size of the points is an inverse function of the precision of the estimates (so larger points correspond to more precise estimates). The next plots then illustrate some customization of such plots, including the transformation of the values on the x- and y-axes to odds and risks. Confidence and prediction interval regions are also added.
  
 ==== Plot ==== ==== Plot ====
Line 15: Line 15:
  
 ### fit random-effects model ### fit random-effects model
-res <- rma(ai=tposbi=tneg, ci=cposdi=cneg, data=dat.bcg, measure="RR")+dat <- dat.damico2009 
 +res <- rma(measure="OR", ai=xtn1i=nt, ci=xcn2i=nc, data=dat)
  
-### draw L'Abbé plot +### set up 2x2 array for plotting 
-labbe(res, las=1, bty="l")+par(mfrow=c(2,2)) 
 + 
 +### decrease the overall point sizes a bit 
 +par(cex=0.7) 
 + 
 +### default plot with log odds on the x- and y-axis 
 +labbe(res) 
 + 
 +### plot with some customization 
 +labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l", 
 +      xlab="Log Odds (Control Group)", ylab="Log Odds (Treatment Group)"
 + 
 +### plot with odds values on the x- and y-axis and some customization 
 +labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l", 
 +      transf=exp, xlab="Odds (Control Group)", ylab="Odds (Treatment Group)"
 + 
 +### plot with risk values on the x- and y-axis and some customization 
 +labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l", 
 +      transf=plogis, lim=c(0,1), xlab="Risk (Control Group)", 
 +      ylab="Risk (Treatment Group)")
 </code> </code>
  
 ==== References ==== ==== References ====
  
-L'Abbé, K. A., Detsky, A. S., & O'Rourke, K. (1987). Meta-analysis in clinical research. //Annals of Internal Medicine, 107//(2), 224--233.+L'Abbé, K. A., Detsky, A. S., & O'Rourke, K. (1987). Meta-analysis in clinical research. //Annals of Internal Medicine, 107//(2), 224--233. https://doi.org/10.7326/0003-4819-107-2-224 
  
plots/labbe_plot.txt · Last modified: 2024/04/18 14:17 by Wolfgang Viechtbauer