|
1 | 1 | ---
|
2 | 2 | title: "Introduction to robvis"
|
3 |
| -author: "LAM" |
| 3 | +author: "Luke A McGuinness" |
4 | 4 | date: "`r Sys.Date()`"
|
5 | 5 | vignette: >
|
6 | 6 | %\VignetteIndexEntry{Introduction to robvis}
|
7 | 7 | %\VignetteEngine{knitr::rmarkdown}
|
8 | 8 | %\VignetteEncoding{UTF-8}
|
9 | 9 | ---
|
10 |
| - |
11 | 10 | ```{r setup, include=FALSE}
|
12 | 11 | knitr::opts_chunk$set(
|
13 | 12 | collapse = TRUE,
|
14 | 13 | comment = "#>",
|
15 | 14 | warning = FALSE,
|
16 | 15 | fig.width = 8,
|
17 | 16 | fig.height = 2.41)
|
18 |
| - library(tidyverse) |
19 |
| -library(robvis) |
| 17 | + library(ggplot2) |
| 18 | + library(robvis) |
20 | 19 | ```
|
21 |
| -## R Markdown |
| 20 | +## Introduction to robvis, a visualisation tool for risk-of-bias assessments |
22 | 21 |
|
| 22 | +The tool takes the summary table from risk-of-bias assessments, produces a summary plot (incorporating some measure of weighting for each study), and formats the plot by the tool used. |
23 | 23 |
|
| 24 | +### RoB2.0 tool for randomised controlled trials |
24 | 25 |
|
25 | 26 | ```{r rob2summary}
|
26 |
| -#Import data for ROB2.0 based risk-of-bias assessments |
27 |
| -
|
| 27 | +# data_rob: example dataset for ROBINS-I tool |
28 | 28 | # Produce barchart summarising risk of bias for each domain, weighted by study precision.
|
29 |
| -robvis::rob_summary(robvis::data_rob, tool = "ROB2", save = "No") |
| 29 | +rob_summary(data_rob, tool = "ROB2", save = "No") |
30 | 30 | ```
|
31 | 31 |
|
32 | 32 | Users can also produce summary plots for two other commonly used tools: ROBINS-I and QUADAS-2
|
33 | 33 |
|
| 34 | +### ROBINS-I tool for non-randomised studies of interventions |
34 | 35 | ```{r robinssummary}
|
35 |
| -#Import data for ROB2.0 based risk-of-bias assessments |
| 36 | +# data_robins: example dataset for ROBINS-I tool |
36 | 37 | # Produce barchart summarising risk of bias for each domain, weighted by study precision.
|
37 |
| -robvis::rob_summary(data_robins, tool = "ROBINS-I", save = "No") |
| 38 | +rob_summary(data_robins, tool = "ROBINS-I", save = "No") |
38 | 39 | ```
|
39 | 40 |
|
| 41 | + |
| 42 | +### QUADAS-2 for diagnostic test accuracy studies |
40 | 43 | ```{r quadassummary}
|
41 | 44 | #Import data for ROB2.0 based risk-of-bias assessments
|
42 | 45 | # Produce barchart summarising risk of bias for each domain, weighted by study precision.
|
43 |
| -robvis::rob_summary(data_quadas, tool = "QUADAS-2", save = "No") |
| 46 | +rob_summary(data_quadas, tool = "QUADAS-2", save = "No") |
44 | 47 | ```
|
0 commit comments