Skip to content

Commit 4e2acc0

Browse files
committed
Add cumulative ranks
1 parent fd8df21 commit 4e2acc0

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

COPD-NMA.qmd

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,23 @@ tau_consistency <- summary(nma_consistency)$summary %>%
104104

105105
We find the following estimate for tau, the between-study standard deviation: `r round(tau_consistency, 3)`. The DIC for this model is `r round(dic_consistency$dic, 1)`.
106106

107+
To complement the relative treatment effects, we summarize the probability that each treatment ranks among the best options in reducing COPD exacerbations.
108+
Cumulative rank probabilities provide a visual summary of the likelihood that a given treatment occupies each possible rank position, with higher curves indicating a higher probability of superior performance.
109+
@fig-rankprobs displays these probabilities for all treatments included in the network meta-analysis, using placebo as the reference.
110+
111+
```{r}
112+
#| echo: true
113+
#| message: false
114+
#| warning: false
115+
#| label: fig-rankprobs
116+
#| fig-cap: "Cumulative rank probabilities for treatments in COPD. Each curve represents the probability that a treatment ranks among the top *k* options (lower ranks indicate greater efficacy). Placebo is shown as the reference."
117+
db_rankprobs <- posterior_rank_probs(nma_consistency,
118+
lower_better = TRUE,
119+
cumulative = TRUE)
120+
plot(db_rankprobs)
121+
```
122+
123+
107124
## Assessing Inconsistency
108125
To assess local inconsistency, we apply the node-splitting approach to each comparison with both direct and indirect evidence.
109126

@@ -115,8 +132,8 @@ nma_inconsistency <- nma(
115132
net,
116133
consistency = "ume",
117134
trt_effects = "random",
118-
prior_trt = normal(scale = 10),
119-
prior_het = half_normal(scale = 5),
135+
prior_trt = normal(scale = 5),
136+
prior_het = half_normal(scale = 2.5),
120137
refresh = 0
121138
)
122139

0 commit comments

Comments
 (0)