NMAoutlier

Detecting Outliers in Network Meta-Analysis

https://github.com/petropouloumaria/nmaoutlier

Science Score: 23.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
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 5 committers (40.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.2%) to scientific vocabulary

Keywords

influence-measures mahalanobis-distance network-meta-analysis outlier outlier-detection-measures
Last synced: 6 months ago · JSON representation

Repository

Detecting Outliers in Network Meta-Analysis

Basic Info
  • Host: GitHub
  • Owner: petropouloumaria
  • License: gpl-2.0
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 804 KB
Statistics
  • Stars: 6
  • Watchers: 2
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Topics
influence-measures mahalanobis-distance network-meta-analysis outlier outlier-detection-measures
Created almost 8 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License

README.Rmd

---
title: "NMAoutlier: Detecting Outliers in Network Meta-Analysis"
output: github_document
---

[![License: GPL (>=2)](https://img.shields.io/badge/license-GPL-blue)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
[![CRAN Version](https://www.r-pkg.org/badges/version/NMAoutlier)](https://cran.r-project.org/package=NMAoutlier)
[![CRAN_time_from_release](https://www.r-pkg.org/badges/ago/NMAoutlier)](https://cran.r-project.org/package=NMAoutlier)
[![Monthly Downloads](https://cranlogs.r-pkg.org/badges/NMAoutlier)](https://cranlogs.r-pkg.org/badges/NMAoutlier)
[![Total Downloads](https://cranlogs.r-pkg.org/badges/grand-total/NMAoutlier)](https://cranlogs.r-pkg.org/badges/grand-total/NMAoutlier)



```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## Description

A package that provides measures and methodologies for detecting outlying and influential studies in network meta-analysis.

- **1) Simply outlier and influential detection measures:** Raw, Standardized, Studentized residuals; Mahalanobis distance and leverage.
- **2) Outlier and influential detection measures by considering a study deletion (Shift the mean):** Raw, Standardized, Studentized deleted residuals; Cook's distance; COVRATIO; weight “leave one out”; leverage “leave one out”; heterogeneity “leave one out”; R heterogeneity; R Qtotal; R Qheterogeneity; R Qinconsistency and DFBETAS.
- Plots for all the above outlier and influential detection measures (simple and deletion measures) and Q-Q plot for network meta-analysis.
- **3) Forward search algorithm in network meta-analysis (FS).**
- Forward plots (fwdplot) for the monitoring measures in each step of forward search algorithm. Monitoring measures: P-scores; z-values for difference of direct and indirect evidence with back-calculation method; Standardized residuals; heterogeneity variance estimator; Cook's distance; ratio of variances; Q statistics.
- Forward plot for summary estimates and their confidence intervals for each treatment in each step of forward search algorithm.


## Installation

You can install the **NMAoutlier** package from GitHub repository as follows:

Installation using R package **[remotes](https://cran.r-project.org/package=remotes)**:

```{r, eval=FALSE}
install.packages("remotes")
remotes::install_github("petropouloumaria/NMAoutlier")
```

## Usage

Example of network meta-analysis comparing the relative effects of four smoking  cessation counseling programs, no contact (A), self-help (B), individual counseling (C) and group counseling (D). The outcome is the number of individuals with successful smoking cessation at 6 to 12 months. The data are in contrast format with odds ratio (OR) and its standard error. Arm-level data can be found in Dias et al. (2013).

References:

Higgins D, Jackson JK, Barrett G, Lu G, Ades AE, and White IR.
Consistency and inconsistency in network meta-analysis: concepts and
models for multi-arm studies. Research Synthesis Methods 2012, 3(2):
98–110.

Dias S, Welton NJ, Sutton AJ, Caldwell DM, Lu G, and Ades AE. Evidence
Synthesis for Decision Making 4: Inconsistency in networks of evidence
based on randomized controlled trials. Medical Decision Making 2013, 33:
641–656.

You can load the **NMAoutlier** library
```{r, eval=FALSE}
library(NMAoutlier)
```


Load the dataset smoking cessation from **netmeta** package.

```{r, eval=FALSE}
data(smokingcessation, package = "netmeta")
```

Transform data from arm-based to contrast-based format using the function **pairwise** from **netmeta** package.
```{r, eval=FALSE}
library(netmeta)
p1 <- pairwise(list(treat1, treat2, treat3),
               list(event1, event2, event3),
               list(n1, n2, n3),
               data = smokingcessation,
               sm = "OR")
```


**Part 1: Simply outlier detection measures**


You can calculate simply outlier and influential detection measures with **NMAoutlier.measures** function as follows:
```{r, eval=FALSE}
measures <- NMAoutlier.measures(p1)
```

You can see the Mahalanobis distance for each study
```{r, eval=FALSE}
measures$Mahalanobis.distance
```

You can plot the Mahalanobis distance for each study with **measplot** function as follows:
```{r, eval=FALSE}
measplot(measures, "mah")
```


You can figure out the Q-Q plot for network meta-analysis with **Qnetplot** function as follows:
```{r, eval=FALSE}
Qnetplot(measures)
```


**Part 2: Outlier detection measures considered deletion (Shift the mean)**


You can calculate outlier and influential detection measures considered study deletion with **NMAoutlier,measures** function as follows:
```{r, eval=FALSE}
deletion <- NMAoutlier,measures(p1, measure = "deletion")
```

You can see the standardized deleted residuals for each study
```{r, eval=FALSE}
deletion$estand.deleted
```

You can see the COVRATIO for each study
```{r, eval=FALSE}
deletion$Covratio
```

You can plot the R statistic for Qinconsistency with function **measplot** as follows:
```{r, eval=FALSE}
measplot(deletion, "rqinc", measure = "deletion")
```


**Part 3: Forward Search Algorithm - (Outlier detection Methodology)**


You can conduct the Forward Search algorithm with **NMAoutlier** function as follows:

```{r, eval=FALSE}
FSresult <- NMAoutlier(p1, small.values = "bad")
```


You can see the forward plots with **fwdplot** function for Cook's distance as follows:

```{r, eval=FALSE}
fwdplot(FSresult,"cook")
```



Or you can plot the Ratio of variances as follows:

```{r, eval=FALSE}
fwdplot(FSresult,"ratio")
```



You can plot the differences of direct and indirect estimates (z-values) as follows:

```{r, eval=FALSE}
fwdplot(FSresult,"nsplit")
```



You can see the forward plots for summary relative treatment estimates of B, C and D versus the reference A with **fwdplotest** function as follows:

```{r, eval=FALSE}
fwdplotest(FSresult)
```


Owner

  • Name: Maria Petropoulou
  • Login: petropouloumaria
  • Kind: user
  • Location: Freiburg, Germany
  • Company: Institute of Medical Biometry and Statistics (IMBI), University of Freiburg

GitHub Events

Total
  • Watch event: 1
  • Push event: 1
  • Pull request event: 1
  • Fork event: 1
Last Year
  • Watch event: 1
  • Push event: 1
  • Pull request event: 1
  • Fork event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 85
  • Total Committers: 5
  • Avg Commits per committer: 17.0
  • Development Distribution Score (DDS): 0.447
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Maria Petropoulou m****p@c****r 47
Maria Petropoulou m****a@g****m 24
Guido Schwarzer sc@i****e 9
Agapios Panos p****s@g****m 4
Maria Petropoulou p****u@i****e 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 14 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 month
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • guido-s (6)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 12,628 last-month
  • Total docker downloads: 42,005
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 4
  • Total maintainers: 1
cran.r-project.org: NMAoutlier

Detecting Outliers in Network Meta-Analysis

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 12,628 Last month
  • Docker Downloads: 42,005
Rankings
Forks count: 21.9%
Stargazers count: 24.2%
Dependent packages count: 29.8%
Average: 34.4%
Dependent repos count: 35.5%
Downloads: 60.7%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.0.0 depends
  • MASS >= 7.3 imports
  • ggplot2 >= 3.0.0 imports
  • gridExtra >= 2.3 imports
  • meta >= 4.19 imports
  • netmeta >= 0.9 imports
  • parallel >= 3.4.1 imports
  • reshape2 >= 1.4.3 imports
  • stats >= 3.4.3 imports