Last active
January 26, 2021 12:56
-
-
Save mcguinlu/201983770dece139fcb076ab96df7bda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "metafor test" | |
output: html_document | |
--- | |
```{r setup_main, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
library(metafor) | |
### Using example from the metafor::reporter() docs | |
# Copy BCG vaccine data into 'dat' | |
dat <- dat.bcg | |
# Calculate log risk ratios and corresponding sampling variances | |
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat, | |
slab=paste(author, ", ", year, sep="")) | |
# Random-effects model | |
res <- rma(yi, vi, data=dat) | |
``` | |
## Other text for systematic review | |
Text on the other aspects of the review process: number of records included, PRISMA flow, table of characteristics, risk-of-bias, etc. | |
## Meta-analysis Methods and Results | |
```{r pressure, echo=FALSE} | |
reporter(res) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment