Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

NMAoutlier: Detecting Outliers in Network Meta-Analysis

Build Status

Description

A package that provides for detecting outlying studies in network meta-analysis.

  • Several outlier detection measures provided: Raw, Standardized, Studentized residuals; Mahalanobis distance and leverage.
  • Plots for outlier and influence measures: Raw, Standardized, Studentized residuals; Mahalanobis distance and leverage.
  • Several outlier and influence detection measures considered deletion: Raw, Standardized,Studentized deleted residuals; Cook 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 outlier and influence detection measures considered deletion: the aboved measures.
  • Q-Q plot for network meta-analysis.
  • Forward search algorithm in network meta-analysis (FS).
  • Forward plots (fwdplot) for the monitoring statistics in each step of forward search algorithm P-scores; z-values for difference of direct and indirect evidence with back-calculation method; Standardized residuals; heterogeneity variance estimator; cook 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.
  • Random shift variance NMA model (RVSOM NMA).
  • Plots for the monitoring measures for random shift variance model.
  • Plots for the for summary estimates of random shift variance model.

Installation

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

Installation using R package devtools:

install.packages("devtools")
devtools::install_github("petropouloumaria/NMAoutlier")

Usage

Example of outlying detection in 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. These data are in contrast format with effect size odds ratio (OR) and its standard error. Arm-level data can be found in Dias et al.(2013).

Reference:

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 (2013). Evidence Synthesis for Decision Making 4: Inconsistency in networks of evidence based on randomized controlled trials. Medical Decision Making 33, 641–656.

You can load the NMAoutlier library

library(NMAoutlier)

Load the dataset smoking cessation from netmeta package.

data(smokingcessation, package = "netmeta")

Transform data from arm-based format to contrast-based format using the function pairwise from netmeta package.

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 some simply outlier detection measures with function NMAoutlier_measures as follows:

measures <- NMAoutlier_measures(p1)

You can see the Mahalanobis distance for each study

measures$Mahalanobis.distance

You can plot the Mahalanobis distance for each study with function plot_NMAoutlier_measures as follows:

plot_NMAoutlier_measures(measures, studlab, "mah")

You can plot the Q-Q plot for network meta-analyis with function Qnetplot as follows:

Qnetplot(measures)

Part 2: Outlier detection measures considered deletion

You can calculate some outlier detection measures considered deletion with function NMAoutlier_deletion_measures as follows:

deletion <- NMAoutlier_deletion_measures(p1)

You can see the standardized deleted residuals for each study

deletion$stand.deleted

We can see the values of COVRATIO when considering deletion for each study

deletion$covratio

We can plot the R statistic for Qinconsistency with function plot_NMAoutlier_deletion_measures as follows:

plot_NMAoutlier_deletion_measures(deletion, studlab, "rqinc")

Part 3: Forward Search Algorithm - Detection Methodology

You can conduct the forward search algorithm with function NMAoutlier as follows:

FSresult <- NMAoutlier(p1, small.values = "bad")

You can see the forward plots with function fwdplot for monitoring measures. For example, you can plot the diagnostic measure Cook distance as follows:

fwdplot(FSresult,"cook")

Or you can plot the ratio of variances as follows:

fwdplot(FSresult,"ratio")

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

fwdplot(FSresult,"nsplit")

You can see the forward plots for summary estimates for each treatment B, C and D with function fwdplotest as follows:

fwdplotest(FSresult)

Part 4: Shift Variance Network Meta-analysis – Detection methodology and sensitivity analysis downweighing outlier

You can conduct the random shift variance model for each study with function NMAsvr as follows:

SVRresult <- NMAsvr(p1, small.values = "bad")

You can see the the Likelihood Ratio Test (LRT) with random shift variance model of each study

SVRresult$LRT 

Or you can see the over-dispersion with random shift variance model of each study

SVRresult$over_disp

You can plot the of Likelihood Ratio Test (LRT) of random shift variance model for each study with function svrplot as follows:

svrplot(SVRresult, "LRT")

You can see the plots for summary estimates for each treatment B, C and D with function svrplotest as follows:

svrplotest(SVRresult)

About

Conduct Forward Search (FS) Algorithm in Network Meta-Analysis (NMA) to identify outlying and influential studies

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.