plots:cumulative_forest_plot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plots:cumulative_forest_plot [2020/03/19 13:28] – Wolfgang Viechtbauer | plots:cumulative_forest_plot [2021/03/29 19:50] – Wolfgang Viechtbauer | ||
---|---|---|---|
Line 13: | Line 13: | ||
<code rsplus> | <code rsplus> | ||
library(metafor) | library(metafor) | ||
- | |||
- | ### decrease margins so the full space is used | ||
- | par(mar=c(4, | ||
### 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=dat$year) |
### cumulative forest plot | ### cumulative forest plot | ||
forest(tmp, xlim=c(-4, | forest(tmp, xlim=c(-4, | ||
- | | + | |
</ | </ | ||
plots/cumulative_forest_plot.txt · Last modified: 2023/08/19 13:38 by Wolfgang Viechtbauer