rnmamod

Official Git repository of rnmamod R package

https://github.com/loukiaspin/rnmamod

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: pubmed.ncbi, ncbi.nlm.nih.gov
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Official Git repository of rnmamod R package

Basic Info
Statistics
  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • Open Issues: 1
  • Releases: 4
Created over 5 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog

README.md

rnmamod: Bayesian network meta-analysis R package

Official Git repository of rnmamod R package

R-CMD-check CRAN status CRAN release data CRAN total downloads <!-- badges: end -->

In R Views November 2021: "Top 40" New CRAN Packages

In Medium Peek-a-boo: Evidence synthesis using the rnmamod R package

In the YouTube channel of ESMARConf2023

Contributors

Loukia Spineli, Chrysostomos Kalyvas, Katerina Papadimitropoulou

Website

The website of rnmamod currently includes two short tutorials (Description of the network and Perform network meta-analysis). There is also a structured reference list to facilitate access to the documentation of the functions available in the package.

Description

The rnmamod package performs one-stage fixed-effect or random-effects Bayesian network meta-analysis (NMA) while adjusting for missing participant outcome data (MOD) using the pattern-mixture model. In the case of two interventions, the package performs one-stage Bayesian pairwise meta-analysis. Standard aggregate data NMA is a special case of NMA with MOD, where either all studies or no studies have MOD available, respectively.

The package handles data inputs in arm-based format: - binary data (effect size: odds ratio, risk ratio, and risk difference)
- continuous data (effect size: raw and standardised mean differences, ratio of means).

The rnmamod package comprises a suite of all necessary models for estimation and prediction of the intervention effect, and evaluation of the consistency assumption locally and globally. Also includes a rich suite of visualisation tools to aid in interpretation of the results and preparation of NMA manuscript submission. Missing participant outcome data are addressed in all models of the package.

Getting started

Run the following code to install and load the package from CRAN:

install.packages("rnmamod")
library(rnmamod)

or run the following code to install the development version of the package:

install.packages("devtools")
devtools::install_github("LoukiaSpin/rnmamod")

Example

Baker et al. (2009) comprising 21 trials comparing seven pharmacologic interventions with each other and placebo in chronic obstructive pulmonary disease (COPD) patients. The exacerbation of COPD (harmful outcome) is the analysed binary outcome.

``` r head(nma.baker2009)

> study t1 t2 t3 t4 r1 r2 r3 r4 m1 m2 m3 m4 n1 n2 n3 n4

> Llewellyn-Jones, 1996 1 4 NA NA 3 0 NA NA 1 0 NA NA 8 8 NA NA

> Paggiaro, 1998 1 4 NA NA 51 45 NA NA 27 19 NA NA 139 142 NA NA

> Mahler, 1999 1 7 NA NA 47 28 NA NA 23 9 NA NA 143 135 NA NA

> Casaburi, 2000 1 8 NA NA 41 45 NA NA 18 12 NA NA 191 279 NA NA

> van Noord, 2000 1 7 NA NA 18 11 NA NA 8 7 NA NA 50 47 NA NA

> Rennard, 2001 1 7 NA NA 41 38 NA NA 29 22 NA NA 135 132 NA NA

```

Network plot

Create the network plot using the netplot function:

``` r

The names of the interventions in the order they appear in the dataset

interv_names <- c("placebo", "budesonide", "budesonide plus formoterol", "fluticasone", "fluticasone plus salmeterol", "formoterol", "salmeterol", "tiotropium")

netplot(data = nma.baker2009, drugnames = intervnames, showmulti = TRUE, edgelabel_cex = 1) ```

Perform Bayesian random-effects network meta-analysis

The following code performs a Bayesian random-effects network meta-analysis under the missing at random assumption while using an intervention-specific informative missingness odds ratio (assumption = "IDE-ARM") in the logarithmic scale:

r res <- run_model(data = nma.baker2009, measure = "OR", model = "RE", assumption = "IDE-ARM", heter_prior = list("halfnormal", 0, 1), mean_misspar = c(0, 0), var_misspar = 1, D = 0, n_chains = 3, n_iter = 10000, n_burnin = 1000, n_thin = 1)

League table

Illustrate all possible pairwise comparisons of the interventions using a league heatmap. Interventions are sorted in decreasing order by their posterior mean SUCRA (surface under the cumulative ranking) value in the main diagonal:

r league_heatmap(full1 = res, drug_names1 = interv_names)


Rankogram with SUCRA curves

The following code presents the hierarchy of the interventions in the network using integrated rankograms and SUCRA curves:

r rankosucra_plot(full1 = res, drug_names1 = interv_names)

Funding source

The development of the rnmamod package was funded by the German Research Foundation (Deutsche Forschungsgemeinschaft) (grant no. SP 1664/1-3 and SP 1664/2-1)

Owner

  • Name: Loukia Spineli
  • Login: LoukiaSpin
  • Kind: user
  • Location: Hannover
  • Company: Hannover Medical School

Biostatistician, Evidence synthesis enthusiast

GitHub Events

Total
  • Release event: 1
  • Push event: 37
  • Create event: 1
Last Year
  • Release event: 1
  • Push event: 37
  • Create event: 1

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 948
  • Total Committers: 4
  • Avg Commits per committer: 237.0
  • Development Distribution Score (DDS): 0.33
Top Committers
Name Email Commits
LoukiaSpin s****a@m****e 635
LoukiaSpin 6****n@u****m 288
Katerina Papadimitropoulou k****u@g****m 24
Chrysostomos 6****s@u****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 1
  • Total pull requests: 29
  • Average time to close issues: N/A
  • Average time to close pull requests: about 10 hours
  • Total issue authors: 1
  • Total pull request authors: 5
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.03
  • Merged pull requests: 28
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • timdisher (1)
Pull Request Authors
  • Katerina-Pap (18)
  • olivroy (6)
  • gordongrabert (2)
  • LoukiaSpin (2)
  • ckalyvas (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 312 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: rnmamod

Bayesian Network Meta-Analysis with Missing Participants

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 312 Last month
  • Docker Downloads: 21,613
Rankings
Forks count: 21.9%
Stargazers count: 28.5%
Dependent packages count: 29.8%
Average: 32.6%
Dependent repos count: 35.5%
Downloads: 47.3%
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 4.0.0 depends
  • MASS * imports
  • R2jags * imports
  • coda * imports
  • dplyr * imports
  • fdrtool * imports
  • gemtc * imports
  • ggfittext * imports
  • ggplot2 * imports
  • ggpubr * imports
  • ggrepel * imports
  • knitr * imports
  • mcmcplots * imports
  • netmeta * imports
  • pcnetmeta * imports
  • reshape2 * imports
  • scales * imports
  • writexl * imports
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc main composite
  • r-lib/actions/setup-r main composite