You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: COPD-NMA.qmd
+68Lines changed: 68 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,3 +53,71 @@ The network compares five single-agent treatments—fluticasone, budesonide, sal
53
53
Importantly, the original authors treated the combination therapies as distinct interventions rather than decomposing them into their individual components.
54
54
55
55
56
+
## Setting up the Network
57
+
In this vignette we will implement a frequentist NMA using the `netmeta` package. We first convert the arm-level data to contrast-level data using the `pairwise` function:
58
+
59
+
```{r}
60
+
#| echo: true
61
+
#| message: false
62
+
#| warning: false
63
+
Baker <- pairwise(treat = treatment,
64
+
event = exac,
65
+
n = total,
66
+
studlab = id,
67
+
sm = "OR",
68
+
data = Baker2009)
69
+
```
70
+
71
+
In he resulting data frame `Baker`, each row corresponds to a direct comparison between two treatments within a trial, with columns for the treatment names (`treat1`, `treat2`), the log-odds ratio (`TE`), its standard error (`seTE`), and the study label (`studlab`).
72
+
73
+
## Random-Effects Network Meta-Analysis
74
+
75
+
We subsequently fit a random-effects model using the `netmeta` function, specifying "Placebo" as the reference treatment:
studlab = studlab, data = Baker, sm = "OR", ref = "Placebo",
83
+
random = TRUE)
84
+
85
+
netgraph(NMA.COPD)
86
+
```
87
+
88
+
## Assessing Network Inconsistency
89
+
We can test for local network inconsistency as follows:
90
+
91
+
```{r}
92
+
#| eval: false
93
+
netsplit(NMA.COPD)
94
+
```
95
+
96
+
By default, indirect estimates are derived using the back-calculation method. A comparison of direct and indirect treatment effect estimates (depicted as odds ratio) from the random effects network meta-analysis model is given in the table below:
97
+
98
+
```{r}
99
+
#| echo: false
100
+
SIDES.COPD <- netsplit(NMA.COPD)
101
+
out <- data.frame("comparison" = SIDES.COPD$comparison,
0 commit comments