The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:plot_of_cumulative_results

Differences

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

Link to this comparison view

Next revision
Previous revision
plots:plot_of_cumulative_results [2017/04/23 14:38] – external edit 127.0.0.1plots:plot_of_cumulative_results [2022/04/22 11:42] (current) – [Code] Wolfgang Viechtbauer
Line 13: Line 13:
 <code rsplus> <code rsplus>
 library(metafor) library(metafor)
- 
-### decrease margins so the more space is used 
-par(mar=c(5,5,2,2)) 
  
 ### calculate (log) risk ratios and corresponding sampling variances ### calculate (log) risk ratios and corresponding sampling variances
Line 24: Line 21:
  
 ### cumulative meta-analysis (in the order of publication year) ### cumulative meta-analysis (in the order of publication year)
-tmp <- cumul(res, order=order(dat$year))+tmp <- cumul(res, order=year)
  
 ### plot of cumulative results ### plot of cumulative results
plots/plot_of_cumulative_results.txt · Last modified: 2022/04/22 11:42 by Wolfgang Viechtbauer