Type: Package
Title: Network Meta-Analysis Based on Multivariate Meta-Analysis and Meta-Regression Models
Version: 2.1-1
Date: 2025-09-19
Maintainer: Hisashi Noma <noma@ism.ac.jp>
Description: Network meta-analysis tools based on contrast-based approach using the multivariate meta-analysis and meta-regression models (Noma et al. (2025) <doi:10.1101/2025.09.15.25335823>). Comprehensive analysis tools for network meta-analysis and meta-regression (e.g., synthesis analysis, ranking analysis, and creating league table) are available through simple commands. For inconsistency assessment, the local and global inconsistency tests based on the Higgins' design-by-treatment interaction model are available. In addition, the side-splitting methods and Jackson's random inconsistency model can be applied. Standard graphical tools for network meta-analysis, including network plots, ranked forest plots, and transitivity analyses, are also provided. For the synthesis analyses, the Noma-Hamura's improved REML (restricted maximum likelihood)-based methods (Noma et al. (2023) <doi:10.1002/jrsm.1652> <doi:10.1002/jrsm.1651>) are adopted as the default methods.
URL: https://doi.org/10.1101/2025.09.15.25335823
Depends: R (≥ 3.5.0)
Imports: stats, grid, MASS, ggplot2, metafor, stringr, forestplot, nleqslv
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2025-09-18 22:58:27 UTC; nomah
Author: Hisashi Noma ORCID iD [aut, cre], Kazushi Maruo [aut], Shiro Tanaka [aut], Toshi A. Furukawa [aut]
Repository: CRAN
Date/Publication: 2025-09-18 23:10:02 UTC

The 'NMA' package.

Description

Network meta-analysis tools based on contrast-based approach using the multivariate meta-analysis and meta-regression models (Noma et al., 2025). Comprehensive analysis tools for network meta-analysis and meta-regression (e.g., synthesis analysis, ranking analysis, and creating league table) are available through simple commands. For inconsistency assessment, the local and global inconsistency tests based on the Higgins' design-by-treatment interaction model are available. In addition, the side-splitting methods and Jackson's random inconsistency model can be applied. Standard graphical tools for network meta-analysis, including network plots, ranked forest plots, and transitivity analyses, are also provided. For the synthesis analyses, the Noma-Hamura's improved REML (restricted maximum likelihood)-based methods (Noma et al. (2023ab)) are adopted as the default methods.

References

Higgins, J. P., Jackson, D., Barrett, J. K., Lu, G., Ades, A. E., and White, I. R. (2012). Consistency and inconsistency in network meta-analysis: concepts and models for multi-arm studies. Research Synthesis Methods 3, 98-110.

Nikolakopoulou, A., White, I. R., and Salanti, G. (2021). Network meta-analysis. In: Schmid CH, Stijnen T, White IR, eds. Handbook of Meta-Analysis. CRC Press; pp. 187-217.

Noma, H. (2024a). Sidesplitting using network meta-regression. Japanese Journal of Biometrics 44, 107-118.

Noma, H. (2024b). Within-study covariance estimators for network meta-analysis with contrast-based approach. Japanese Journal of Biometrics 44, 119-126.

Noma, H., Hamura, Y., Gosho, M., and Furukawa, T. A. (2023a). Kenward-Roger-type corrections for inference methods of network meta-analysis and meta-regression. Research Synthesis Methods 14, 731-741.

Noma, H., Hamura, Y., Sugasawa, S., and Furukawa, T. A. (2023b). Improved methods to construct prediction intervals for network meta-analysis. Research Synthesis Methods 14, 794-806.

Noma, H. and Maruo, K. (2025). Network meta-analysis combining survival and count outcome data: A simple frequentist approach. medRxiv, doi:10.1101/2025.01.23.25321051.

Noma, H., Maruo, K., Tanaka, S. and Furukawa, T. A. (2025). NMA: Network meta-analysis based on multivariate meta-analysis and meta-regression models in R. medRxiv, doi:10.1101/2025.09.15.25335823.

Noma, H., Tanaka, S., Matsui, S., Cipriani, A., and Furukawa, T. A. (2017). Quantifying indirect evidence in network meta-analysis. Statistics in Medicine 36, 917-927.

Salanti, G. (2012). Indirect and mixed-treatment comparison, network, or multiple-treatments meta-analysis: many names, many benefits, many concerns for the next generation evidence synthesis tool. Research Synthesis Methods 3, 80-97.

White, I. R., Barrett, J. K., Jackson, D., and Higgins, J. P. (2012). Consistency and inconsistency in network meta-analysis: model estimation using multivariate meta-regression. Research Synthesis Methods 3, 111-125.


Phung et al. (2010)'s network meta-analysis data

Description

A network meta-analysis dataset for treatments of type-2 diabetes from Chaimani and Salanti (2015).

Usage

data(antidiabetic)

Format

An arm-based dataset with 20 studies

References

Chaimani, A. and Salanti, G. (2015). Visualizing assumptions and results in network meta-analysis: the network graphs package. Stata Journal. 15: 905-920.

Phung, O. J., Scholle, J. M., Talwar, M. and Coleman, C. I. (2010). Effect of noninsulin antidiabetic drugs added to metformin therapy on glycemic control, weight gain, and hypoglycemia in type 2 diabetes. JAMA. 303: 1410-1418.


Elliott and Mayer (2007)'s network meta-analysis data

Description

A network meta-analysis data from Elliott and Mayer (2007) that compared 5 antihypertensive drug classes and placebo for occurrence of diabetes.

Usage

data(diabetes)

Format

An arm-based dataset with 22 studies

References

Elliott, W. J., and Meyer, P. M. (2007). Incident diabetes in clinical trials of antihypertensive drugs: a network meta-analysis. Lancet. 369: 201-207.


Example data of summary statistics from Phung et al. (2010)'s network meta-analysis data

Description

Summary statistics for 3 trials of the network meta-analysis in Phung et al. (2010).

Usage

data(exdataMD)

Format

A data frame for network meta-analysis with 3 trials.

References

Chaimani, A. and Salanti, G. (2015). Visualizing assumptions and results in network meta-analysis: the network graphs package. Stata Journal. 15: 905-920.

Phung, O. J., Scholle, J. M., Talwar, M. and Coleman, C. I. (2010). Effect of noninsulin antidiabetic drugs added to metformin therapy on glycemic control, weight gain, and hypoglycemia in type 2 diabetes. JAMA. 303: 1410-1418.


Example data of arm-specific survival probability estimates for a network meta-analysis

Description

Summary statistics for 5 trials of the network meta-analysis.

Usage

data(exdataP)

Format

A data frame for network meta-analysis with 5 trials.


Example data of summary statistics from Sciarretta et al. (2011)'s network meta-analysis data

Description

Summary statistics for 3 trials of the network meta-analysis in Sciarretta et al. (2011).

Usage

data(exdataRR)

Format

A data frame for network meta-analysis with 3 trials.

References

Sciarretta, S., Palano, F., Tocci, G., Baldini, R., and Volpe, M. (2011). Antihypertensive treatment and development of heart failure in hypertension: a Bayesian network meta-analysis of studies in patients with hypertension and high cardiovascular risk. Archives of Internal Medicine 171: 384-394.


Higgins' global inconsistency test

Description

Higgins' global inconsistency test based on the design-by-treatment interaction model. REML-based Wald test for the all possible design-by-treatment interactions on the network is performed.

Usage

global.ict(x)

Arguments

x

Output object of setup

Value

The results of the global inconsistency test are prrovided.

References

Higgins, J. P., Jackson, D., Barrett, J. K., Lu, G., Ades, A. E., and White, I. R. (2012). Consistency and inconsistency in network meta-analysis: concepts and models for multi-arm studies. Research Synthesis Methods 3, 98-110.

Jackson, D., Boddington, P., and White, I. R. (2016). The design-by-treatment interaction model: a unifying framework for modelling loop inconsistency in network meta-analysis. Research Synthesis Methods 7, 329-332.

White, I. R., Barrett, J. K., Jackson, D., and Higgins, J. P. (2012). Consistency and inconsistency in network meta-analysis: model estimation using multivariate meta-regression. Research Synthesis Methods 3, 111-125.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

global.ict(hf2)

Sciarretta et al. (2011)'s network meta-analysis data

Description

A network meta-analysis data from Sciarretta et al. (2011) that compared 7 antihypertensive drug classes and placebo for occurrence of heart failure.

Usage

data(heartfailure)

Format

An arm-based dataset with 26 studies

References

Sciarretta, S., Palano, F., Tocci, G., Baldini, R., and Volpe, M. (2011). Antihypertensive treatment and development of heart failure in hypertension: a Bayesian network meta-analysis of studies in patients with hypertension and high cardiovascular risk. Archives of Internal Medicine 171: 384-394.


Local inconsistency tests for all closed loops on the network

Description

Local inconsistency tests for all closed loops on the network are performed. Higgins' inconsistency test (Generalized Bucher's test) that assesses the design-by-treatment interactions on the triangle loops are performed and their results are presented.

Usage

local.ict(x)

Arguments

x

Output object of setup

Value

The results of the local inconsistency tests for all closed loops on the network are provided.

References

Bucher, H. C., Guyatt, G. H., Griffith, L. E., and Walter, S. D. (1997). The results of direct and indirect treatment comparisons in meta-analysis of randomized controlled trials. Journal of Clinical Epidemiology 50, 683-691.

Veroniki, A. A., Vasiliadis, H. S., Higgins, J. P., and Salanti, G. (2013). Evaluation of inconsistency in networks of interventions. International Journal of Epidemiology 42, 332-345.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

local.ict(hf2)

Generating a networkplot

Description

Generating a networkplot. The sizes of the nodes and edges are proportional to the corresponding sample sizes of direct comparisons.

Usage

netplot(x,text=TRUE,col="black",bg="blue",base.lwd=1,base.cex=1)

Arguments

x

Output object of setup

text

A logical value that specifies whether the treatment labels are added

col

Outer circumferential color of the nodes (default: black)

bg

Color of the node (default: blue)

base.lwd

A parameter adjusting edge widths (default: 1)

base.cex

A parameter adjusting node sizes (default: 1)

Value

A networkplot is produced.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

netplot(hf2)                                      # default color and sizes
netplot(hf2,base.lwd=1.5,base.cex=1.5)            # change the sizes
netplot(hf2,col="red",bg="red")                   # change the color
netplot(hf2,text=FALSE)                           # without texts

Network meta-analysis based on contrast-based approach using the multivariate meta-analysis model

Description

Network meta-analysis based on contrast-based approach using the multivariate random-effects meta-analysis model. The synthesis results and prediction intervals based on the consistency assumption are provided. The ordinary REML method and its improved higher order asymptotic methods (Noma-Hamura methods) are available.

Usage

nma(x, eform=FALSE, method="NH")

Arguments

x

Output object of setup

eform

A logical value that specifies whether the outcome ought to be transformed by exponential function (default: FALSE)

method

Estimation and prediction method. NH: Noma-Hamura's improved REML-based methods (default). REML: The ordinary REML method. fixed: Fixed-effect model.

Value

The results of the network meta-analysis using the multivariate meta-analysis model.

References

Jackson, D., White, I. R., Riley, R. D. (2012). Quantifying the impact of between-study heterogeneity in multivariate meta-analyses. Statistics in Medicine 31: 3805-3820.

Nikolakopoulou, A., White, I. R., and Salanti, G. (2021). Network meta-analysis. In: Schmid, C. H., Stijnen, T., White, I. R., eds. Handbook of Meta-Analysis. CRC Press; pp. 187-217.

Noma, H., Hamura, Y., Gosho, M., and Furukawa, T. A. (2023). Kenward-Roger-type corrections for inference methods of network meta-analysis and meta-regression. Research Synthesis Methods 14, 731-741.

Noma, H., Hamura, Y., Sugasawa, S., and Furukawa, T. A. (2023). Improved methods to construct prediction intervals for network meta-analysis. Research Synthesis Methods 14, 794-806.

White, I. R., Barrett, J. K., Jackson, D., and Higgins, J. P. (2012). Consistency and inconsistency in network meta-analysis: model estimation using multivariate meta-regression. Research Synthesis Methods 3, 111-125.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)
hf3 <- setup(study=study,trt=trt,d=d,n=n,measure="RR",ref="Placebo",data=heartfailure)
hf4 <- setup(study=study,trt=trt,d=d,n=n,measure="RD",ref="Placebo",data=heartfailure)

nma(hf2, eform=TRUE)
nma(hf3, eform=TRUE)
nma(hf4)

Multivariate Q-statistic and its factorization

Description

Multivariate Q-statistic and its factorized versions (within and between designs) are provided. P-values of the corresponding Q-tests are also presented.

Usage

nmaQ(x)

Arguments

x

Output object of setup

Value

Multivariate Q-statistic and its factorized ones (within and between designs) are provided.

References

Jackson, D., White, I. R., and Riley, R. D. (2012). Quantifying the impact of between-study heterogeneity in multivariate meta-analyses. Statistics in Medicine 31: 3805-3820.

Krahn, U., Binder, H., and Konig, J. (2013). A graphical tool for locating inconsistency in network meta-analysis. BMC Medical Research Methodology 13, 35.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

nmaQ(hf2)

Generating a ranked forest plot for the synthesis results of network meta-analysis

Description

A ranked forest plot for the synthesis results of network meta-analysis is generated based on the forestplot package by simple command. Details of the forestplot is customized by using the output objects of obj.forest function); see also help(obj.forest).

Usage

nmaforest(x,method="NH",col.plot="black",digits=3,ascending=TRUE)

Arguments

x

Output object of setup

method

Estimation and prediction method. NH: Noma-Hamura's improved REML-based methods (default). REML: The ordinary REML method. fixed: Fixed-effect model.

col.plot

Color of the confidence interval plot (default: black)

digits

Number of decimal places

ascending

Type of order. Default is ascending order, but it can be changed to descending order changing to FALSE.

Value

A ranked forest plot for the synthesis results of network meta-analysis is generated.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

nmaforest(hf2)                           # Default setting
nmaforest(hf2, col.plot="blue")          # Change the color
nmaforest(hf2, ascending=FALSE)          # Change to the descending order

Comparison-adjusted funnel plot

Description

A comparison-adjusted funnel plot for the studies involving treatment 1 (reference treatment specified in setup) is produced.

Usage

nmafunnel(x, method="NH", legends="topright")

Arguments

x

Output object of setup

method

Estimation and prediction method. NH: Noma-Hamura's improved REML-based methods (default). REML: The ordinary REML method.

legends

Location of the legend on the plot (default: topright)

Value

Comparison-adjusted funnel plot for the studies involving treatment 1 (reference treatment specified in setup) is produced.

References

Chaimani, A. and Salanti, G. (2012). Using network meta-analysis to evaluate the existence of small-study effects in a network of interventions. Research Synthesis Methods 3, 161–176.

Chaimani, A., Higgins, J. P., Mavridis, D., Spyridonos, P., and Salanti, G. (2013). Graphical tools for network meta-analysis in Stata. PLoS One 8, e76654.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)
hf4 <- setup(study=study,trt=trt,d=d,n=n,measure="RD",ref="Placebo",data=heartfailure)

nmafunnel(hf2,legends="bottomright")
nmafunnel(hf4)

Generating a league table

Description

A league table is produced for all possible pairs of the treatments. The league table can be outputted as a CSV file through setting out.csv="filename".

Usage

nmaleague(x, method="NH", eform=FALSE, digits=3, PI=FALSE, out.csv=NULL)

Arguments

x

Output object of setup

method

Estimation and prediction method. NH: Noma-Hamura's improved REML-based methods (default). REML: The ordinary REML method.

eform

A logical value that specifies whether the outcome ought to be transformed by exponential function (default: FALSE)

digits

Number of decimal places

PI

A logical value that specify whether the inference or prediction results are provided

out.csv

A character object that specifies a filename if the user wants to output the league table as a CSV file (e.g., out.csv="out_league.csv").

Value

A league table is produced.

References

Nikolakopoulou, A., White, I. R., and Salanti, G. (2021). Network meta-analysis. In: Schmid, C. H., Stijnen, T., White, I. R., eds. Handbook of Meta-Analysis. CRC Press; pp. 187-217.

Noma, H., Hamura, Y., Gosho, M., and Furukawa, T. A. (2023). Kenward-Roger-type corrections for inference methods of network meta-analysis and meta-regression. Research Synthesis Methods 14, 731-741.

Noma, H., Hamura, Y., Sugasawa, S., and Furukawa, T. A. (2023). Improved methods to construct prediction intervals for network meta-analysis. Research Synthesis Methods 14, 794-806.

Salanti, G., Ades, A. E., and Ioannidis, J. P. (2011). Graphical methods and numerical summaries for presenting results from multiple-treatment meta-analysis: an overview and tutorial. Journal of Clinical Epidemiology 64, 163-171.

White, I. R., Barrett, J. K., Jackson, D., and Higgins, J. P. (2012). Consistency and inconsistency in network meta-analysis: model estimation using multivariate meta-regression. Research Synthesis Methods 3, 111-125.

Examples

data(smoking)

smk2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="A",data=smoking)

nmaleague(smk2)                                        # default setting
nmaleague(smk2, eform=TRUE)                            # transformed to exponential-scale
nmaleague(smk2, eform=TRUE, digits=2)                  # digits can be changed
nmaleague(smk2, eform=TRUE, PI=TRUE)                   # prediction intervals

Calculating ranking statistics of network meta-analysis

Description

Ranking statistics of network meta-analysis such as SUCRA, MEANRANK, and probability of ranking are calculated by parametric bootstrap.

Usage

nmarank(x, B=20000, method="NH", ascending=TRUE)

Arguments

x

Output object of setup

B

Number of parametric bootstrap resampling (default: 20000)

method

Estimation and prediction method. NH: Noma-Hamura's improved REML-based methods (default). REML: The ordinary REML method. fixed: Fixed-effect model.

ascending

A logical value that specifies whether the ranking is defined by ascending or descending order.

Value

The results of the ranking statistics of network meta-analysis are provided. Also, ranking probability plots are produced.

References

Chaimani, A., Higgins, J. P., Mavridis, D., Spyridonos, P., and Salanti, G. (2013). Graphical tools for network meta-analysis in STATA. PLoS One 8, e76654.

Salanti, G., Ades, A. E. and Ioannidis, J. P. (2011). Graphical methods and numerical summaries for presenting results from multiple-treatment meta-analysis: An overview and tutorial. Journal of Clinical Epidemiology 64, 163–171.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

nmarank(hf2)
nmarank(hf2, ascending=FALSE)

Network meta-regression based on contrast-based approach

Description

Network meta-regression based on contrast-based approach using the multivariate meta-regression model. Effect modifications by study-level covariates (specified in the setup function) can be assessed. In many network meta-analysis, some treatment contrasts involve only 1 or 2 (or 0) direct comparisons, and the regression coefficients of the corresponding outcomes cannot be validly estimated (non-identifiable). Thus, the nmareg function can specify a subset of outcome variables to be modelled by the regression model (to be assessed the effect modifications) by treats. Currently, the parameter estimation is performed by the ordinary REML method.

Usage

nmareg(x, z, treats)

Arguments

x

Output object of setup

z

Covariate name vector

treats

A vector that specifies treatments to be assessed effect modifications that correspond to the elements of outcome vectors y in x (please specify the treatment numbers of coding; multiple outcomes can be specified jointly, as a vector).

Value

The results of the network meta-regression analysis are provided.

References

Nikolakopoulou, A., White, I. R., Salanti, G. (2021). Network meta-analysis. In: Schmid, C. H., Stijnen, T., White, I. R., eds. Handbook of Meta-Analysis. CRC Press; pp. 187-217.

Noma, H., Hamura, Y., Gosho, M., and Furukawa, T. A. (2023). Kenward-Roger-type corrections for inference methods of network meta-analysis and meta-regression. Research Synthesis Methods 14, 731-741.

White, I. R., Barrett, J. K., Jackson, D., and Higgins, J. P. (2012). Consistency and inconsistency in network meta-analysis: model estimation using multivariate meta-regression. Research Synthesis Methods 3, 111-125.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,z=c(SBP,DBP,pubyear),measure="OR",
ref="Placebo",data=heartfailure)

nmareg(hf2,z=SBP,treats=3)
nmareg(hf2,z=c(SBP,DBP),treats=c(3,4,6))

Evaluating study weights and contribution matrix

Description

Contribution weight matrices to assess how individual studies influence the synthesized results are presented. Jackson et al. (2017) and Noma et al. (2017) showed the contribution rates are estimated by the factorized information, and the contribution weight matrices are calculated through the factorized information.

Usage

nmaweight(x)

Arguments

x

Output object of setup

Value

Contribution weight matrices for the consistency model are provided. Also, a heatmap for the contribution matrix of overall evidence is presented.

References

Jackson, D., White, I. R., Price, M., Copas, J., and Riley, R. D. (2017). Borrowing of strength and study weights in multivariate and network meta-analysis. Statistical Methods in Medical Research 26, 2853-2868.

Noma, H., Tanaka, S., Matsui, S., Cipriani, A., and Furukawa, T. A. (2017). Quantifying indirect evidence in network meta-analysis. Statistics in Medicine 36, 917-927.

Examples

data(smoking)

smk2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="A",data=smoking)

nmaweight(smk2)

Numerical objects of ranked forest plot for the synthesis results of network meta-analysis

Description

Numerical objects of ranked forest plot for the synthesis results of network meta-analysis are generated. These objects may be used to make a customized forest plot using forestplot function of forestplot package.

Usage

obj.forest(x,method="NH",digits=3,ascending=TRUE)

Arguments

x

Output object of setup

method

Estimation and prediction method. NH: Noma-Hamura's improved REML-based methods (default). REML: The ordinary REML method. fixed: Fixed-effect model.

digits

Number of decimal places

ascending

Type of order. Default is ascending order, but it can be changed to descending order changing to FALSE.

Value

Numerical objects of ranked forest plot is produced. They may be used for forestplot function of forestplot package to make a customized ranked forest plot.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

obj.forest(hf2)

Pairwise meta-analyses for all treatment pairs with direct comparisons on the network

Description

Pairwise meta-analyses for all treatment pairs with direct comparisons on the network are performed. The synthesis analyses are performed by rma and regtest in metafor package.

Usage

pairwise(x,method="SJ",test="knha")

Arguments

x

Output object of setup

method

Method of the estimation of pairwise meta-analysis. All possible options of rma function in metafor package is available (default: the Sidik-Jonkman method (SJ)).

test

Method of the statistical inference for pairwise meta-analysis. All possible options of rma function in metafor package is available (default: the Hartung-Knapp adjustment (knha)).

Value

The results of the meta-analyses for all possible treatment pairs are provided.

References

DerSimonian, R., and Laird, N. M. (1986). Meta-analysis in clinical trials. Controlled Clinical Trials 7, 177-188.

Egger, M., Davey Smith, G., Schneider, M., and Minder, C. (1997). Bias in meta-analysis detected by a simple, graphical test. BMJ 315, 629-634.

Higgins, J. P. T., and Thompson, S. G. (2002). Quantifying heterogeneity in a meta-analysis. Statistics in Medicine 21, 1539-1558.

IntHout, J., Ioannidis, J. P. A., and Borm, G. F. (2014). The Hartung–Knapp–Sidik–Jonkman method for random effects meta‐analysis is straightforward and considerably outperforms the standard DerSimonian–Laird method. BMC Medical Research Methodology 14, 25.

Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software 36, Issue 3.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

pairwise(hf2,method="REML",test="z")

Jackson's random inconsistency model

Description

Jackson's random inconsistency model for modelling the design-by-treatment interactions. Model-based testing results for heterogeneity and inconsistency (design-by-treatment interactions) and the I2-statistics are provided.

Usage

random.icm(x)

Arguments

x

Output object of setup

Value

The results of the analysis of Jackson's random inconsistency model and I2-statistics are provided.

References

Jackson, D., White, I. R., and Riley, R. D. (2012). Quantifying the impact of between-study heterogeneity in multivariate meta-analyses. Statistics in Medicine 31: 3805-3820.

Jackson, D., Barrett, J. K., Rice, S., White, I. R., and Higgins, J. P. T. (2014). A design-by-treatment interaction model for network meta-analysis with random inconsistency effects. Statistics in Medicine 33, 3639-3654.

Law, M., Jackson, D., Turner, R., Rhodes, K., and Viechtbauer, W. (2016). Two new methods to fit models for network meta-analysis with random inconsistency effects. BMC Medical Research Methodology 16, 87.

Nikolakopoulou, A., White, I. R., and Salanti, G. (2021). Network meta-analysis. In: Schmid, C. H., Stijnen, T., White, I. R., eds. Handbook of Meta-Analysis. CRC Press; pp. 187-217.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)

random.icm(hf2)

Rounding a numerical value

Description

A function that returns a rounded value as a character.

Usage

rdc(a,digits)

Arguments

a

A numerical value to be rounded

digits

Number of decimal places

Value

The rounded value is returned as a character.

Examples

rdc(2.412, 3)
rdc(2.41, 3)
rdc(2.4, 3)
rdc(2, 3)

rdc(-2.41, 3)
rdc(-2.4, 3)
rdc(-2, 3)

rdc(0, 3)

Transforming arm-level data to contrast-based summary statistics and making objects for network meta-analysis

Description

A setup function to generate R objects that may be used for network meta-analysis. Users should prepare arm-level datasets, and the setup function transforms the arm-level data to the contrast-based summary statistics. The type of outcome variable can be specified by the measure. If the measure is specified as OR, RR or RD, the outcome ought to be dichotomous, and d and n are needed to compute the summary statistics. Besides, if the measure is specified as MD or SMD, the outcome ought to be continuous, and m, s and n are needed to compute the summary statistics. Also, if the measure is specified as HR or SPD, the outcome ought to be survival (time-to-event), and d and n (actual or pseudo-data for the event numbers and sample sizes calculated by trans.armdata or trans.armdataP ) are needed to compute the summary statistics; hazard ratios are estimated by the complementary log-log-type estimator. Several covariates can be involved as z for network meta-regression analysis (nmareg) and transitivity analysis (transitivity).

Usage

setup(study,trt,d,n,m,s,z,measure,ref,data)

Arguments

study

Study ID

trt

Treatment variable. It can be formed as both of numbered treatment (=1,2,...) and characters (e.g., "Placebo", "ARB", "Beta blocker").

d

Number of events (for dichotomous outcome and survival outcome).

n

Sample size.

m

Mean of the outcome variable (for continuous outcome).

s

Standard deviation of the outcome variable (for continuous outcome).

z

Covariate name vector to be used for network meta-regression analysis or transitivity analysis (optional).

measure

Outcome measure (can be OR (odds ratio), RR (risk ratio), and RD (risk difference) for dichotomous outcome, MD (mean difference) and SMD (standardized mean difference) for continuous outcome, and HR (hazard ratio) and SPD (survival probability difference) for survival outcome.

ref

Reference treatment category that ought to be involved in trt.

data

A data frame that involves the arm-based data.

Value

Contrast-based summary statistics are generated.

References

Noma, H. (2024b). Within-study covariance estimators for network meta-analysis with contrast-based approach. Japanese Journal of Biometrics 44, 119-126.

Noma, H. and Maruo, K. (2025). Network meta-analysis combining survival and count outcome data: A simple frequentist approach. medRxiv, doi:10.1101/2025.01.23.25321051.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="Placebo",data=heartfailure)
hf3 <- setup(study=study,trt=trt,d=d,n=n,measure="RR",ref="Placebo",data=heartfailure)
hf4 <- setup(study=study,trt=trt,d=d,n=n,measure="RD",ref="Placebo",data=heartfailure)

hf5 <- setup(study=study,trt=trt,d=d,n=n,z=c(SBP,DBP,pubyear),measure="OR",
ref="Placebo",data=heartfailure)


data(antidiabetic)

ad2 <- setup(study=id,trt=t,m=y,s=sd,n=n,measure="MD",ref="Placebo",data=antidiabetic)
ad3 <- setup(study=id,trt=t,m=y,s=sd,n=n,measure="SMD",ref="Placebo",data=antidiabetic)


data(woods1)
data(woods2)
woods3 <- trans.armdata(study=studlab,treat1=treat1,treat2=treat2,n1=n1,n2=n2,
y=TE,SE=seTE,measure="logHR",data=woods1)
# Creating pseudo-dichotomized data that is equivalent to the hazard ratio data.
# Using the setup function, the hazard ratio estimates are reproduced.

woods4 <- rbind(woods2,woods3)
# If some studies did not report hazard ratio estimates and only reported event numbers,
# the survival and dichotomized outcomes can be combined using this method.

wd4 <- setup(study=study,trt=trt,d=d,n=n,measure="HR",ref="Placebo",data=woods4)


data(exdataP)
woods5 <- trans.armdataP(study=study,treat=trt,y=y,SE=se,data=exdataP)

wd5 <- setup(study=study,trt=trt,d=d,n=n,measure="SPD",ref="Placebo",data=woods5)

Sidesplitting for quantifying direct and indirect evidence for all possible treatment pairs and the inconsistency test

Description

Noma's sidesplitting for quantifying direct and indirect evidence for all possible treatment pairs based on network meta-regression and the inconsistency tests are performed. For the bias correction that causes the involvement of multi-arm trials, we adopted the adjustment method of Noma et al. (2017) and Noma (2023).

Usage

sidesplit(x)

Arguments

x

Output object of setup

Value

The results of the sidesplitting for all possible treatment pairs are provided.

References

Dias, S., Welton, N. J., Caldwell, D. M., and Ades, A. E. (2010). Checking consistency in mixed treatment comparison meta-analysis. Statistics in Medicine 29, 932-944.

Noma, H. (2024). Sidesplitting using network meta-regression. Japanese Journal of Biometrics 44, 107-118.

Noma, H., Tanaka, S., Matsui, S., Cipriani, A., and Furukawa, T. A. (2017). Quantifying indirect evidence in network meta-analysis. Statistics in Medicine 36, 917-927.

Examples

data(smoking)

smk2 <- setup(study=study,trt=trt,d=d,n=n,measure="OR",ref="A",data=smoking)

sidesplit(smk2)

Smoking cessation data

Description

A network meta-analysis data for smoking cessation from Lu and Ades (2006) and Higgins et al. (2012).

Usage

data(smoking)

Format

An arm-based dataset with 24 studies.

References

Lu, G., Ades, A. E. (2006). Assessing evidence inconsistency in mixed treatment comparisons. Journal of the American Statistical Association 101:447-459.

Higgins, J. P. T., Jackson, D., Barrett, J. K. et al (2012). Consistency and inconsistency in network meta-analysis: concepts and models for multi-arm studies. Research Synthesis Methods 3:98-110.


Transforming contrast-based summary statistics to arm-based data

Description

The multivariate meta-analysis and meta-regression models used in NMA package require contrast-based summary statistics created by setup function. The setup function requires arm-based data for individual studies. Some studies only report summary statistics (e.g., hazard ratio estimates) and do not provide arm-level data. The trans.armdata function creates arm-level data that can be used for the setup function using the summary statistics. Note the estimated data may not accord to the original data. However, they are solely pseudo-data, designed so that the contrast-based statistics generated by the setup function accord to the original data. The NMA package tools rely solely on summary statistics for the synthesis analyses, so this is not problematic. If there are relevant covariate data that can used for meta-regression analyses, please edit the output object before entering to the setup function; the output object can be exported to a CSV or Microsoft Excel file. Also, when some studies report only arm-level data, users can combine the data object of arm-based data with the output object of trans.armdata function. For hazard ratio estimates, the event number is inversely calculated using the complementary log-log-type estimator.

Usage

trans.armdata(study,treat1,treat2,n1,n2,y,SE,measure,data)

Arguments

study

Study ID

treat1

Treatment variable of arm 1. It can be formed as both of numbered treatment (=1,2,...) and characters (e.g., "Placebo", "ARB", "Beta blocker").

treat2

Treatment variable of arm 2. It can be formed as both of numbered treatment (=1,2,...) and characters (e.g., "Placebo", "ARB", "Beta blocker").

n1

Sample size of arm 1.

n2

Sample size of arm 2.

y

Contrast-based summary statistics (e.g., estimate of logHR between arms 1 and 2).

SE

Standard error estimate of y.

measure

Outcome measure (can be logOR (log odds ratio), logRR (log risk ratio), and RD (risk difference) for dichotomous outcome, MD (mean difference) for continuous outcome, and logHR (log hazard ratio) for survival outcome.

data

A data frame that involves the contrast-based data.

Value

Estimated arm-based summary statistics are generated. Note the estimated data may not accord to the original data. However, they are solely pseudo-data, designed so that the contrast-based statistics generated by the setup function accord to the original data. The NMA package tools rely solely on summary statistics for the synthesis analyses, so this is not problematic.

References

Noma, H. and Maruo, K. (2025). Network meta-analysis combining survival and count outcome data: A simple frequentist approach. medRxiv, doi:10.1101/2025.01.23.25321051.

Examples

data(exdataMD)
trans.armdata(study=id,treat1=treat1,treat2=treat2,n1=n1,n2=n2,y=MD,SE=seMD,
measure="MD",data=exdataMD)

data(exdataRR)
trans.armdata(study=id,treat1=treat1,treat2=treat2,n1=n1,n2=n2,y=logRR,SE=SE,
measure="logRR",data=exdataRR)

data(woods1)
trans.armdata(study=studlab,treat1=treat1,treat2=treat2,n1=n1,n2=n2,y=TE,SE=seTE,
measure="logHR",data=woods1)
# Event numbers are invesely calculated by the hazard ratio estimates.
# The resultant event numbers can differ from the actual event numbers,
# but they can be interpreted as pseudo-data that have equivalent information
# with the hazard ratio estimates.
# The hazard ratio estimates can be re-calculated by setup function.

Transforming arm-specific incidence proportion or survival probability data to arm-level data

Description

The multivariate meta-analysis and meta-regression models used in NMA package require contrast-based summary statistics created by setup function. The setup function requires arm-level data for individual studies. Some studies may only report arm-specific incidence proportion or survival probability data. The trans.armdataP function creates arm-level data that can be used for the setup function. Note the estimated data may not accord to the original data. However, they are solely working pseudo-data, designed so that the contrast-based statistics generated by the setup function accord to the original data. The NMA package tools rely solely on summary statistics for the synthesis analyses, so this is not problematic. If there are relevant covariate data that can used for meta-regression analyses, please edit the output object before entering to the setup function; the output object can be exported to a CSV or Microsoft Excel file. Also, when some studies report only arm-level data, users can combine the data object of arm-based data with the output object of trans.armdataP function.

Usage

trans.armdataP(study,treat,y,SE,data)

Arguments

study

Study ID

treat

Treatment variable of individual arms. It can be formed as both of numbered treatment (=1,2,...) and characters (e.g., "Placebo", "ARB", "Beta blocker").

y

Arm-specific incidence proportion or survival probability estimates.

SE

Standard error estimate of y.

data

A data frame that involves the summary statistics data.

Value

Estimated arm-level event counts and sample sizes are generated. Note the estimated data may not accord to the original data. However, they are solely working pseudo-data, designed so that the contrast-based statistics generated by the setup function accord to the original data. The NMA package tools rely solely on summary statistics for the synthesis analyses, so this is not problematic.

Examples

data(exdataP)
trans.armdataP(study=study,treat=trt,y=y,SE=se,data=exdataP)

Checking transitivity

Description

To check transitivity on the network, summary statistics of a certain covariate among different study designs are provided. Also, a summary plot for these statistics is presented.

Usage

transitivity(x, z, gcol="blue", yrange)

Arguments

x

Output object of setup

z

Covariate name for assessing transitivity (must be involved in covariate of the output object of setup

gcol

Color of the plot

yrange

Range of y-axis of the plot

Value

Summary statistics of the covariate among different study designs and its summary plot are presented.

References

Cipriani, A., Furukawa, T. A., Salanti, G., et al. (2018). Comparative efficacy and acceptability of 21 antidepressant drugs for the acute treatment of adults with major depressive disorder: a systematic review and network meta-analysis. Lancet 391, 1357-1366.

Salanti, G. (2012). Indirect and mixed-treatment comparison, network, or multiple-treatments meta-analysis: many names, many benefits, many concerns for the next generation evidence synthesis tool. Research Synthesis Methods 3, 80-97.

Examples

data(heartfailure)

hf2 <- setup(study=study,trt=trt,d=d,n=n,z=c(SBP,DBP,pubyear),measure="OR",
ref="Placebo",data=heartfailure)

transitivity(hf2, SBP)
transitivity(hf2, DBP)
transitivity(hf2, pubyear)

Network meta-analysis dataset of COPD: Hazard ratio statistics

Description

A network meta-analysis dataset for COPD summarized in hazard ratio statistics provided in Woods et al. (2010).

Usage

data(woods1)

Format

A data frame for network meta-analysis with 2 trials.

References

Woods, B. S., Hawkins, N. and Scott, D. A. (2010). Network meta-analysis on the log-hazard scale, combining count and hazard ratio statistics accounting for multi-arm trials: A tutorial. BMC Medical Research Methodology 10: 54.


Network meta-analysis dataset of COPD: Dichotomized data

Description

A network meta-analysis dataset for COPD reported only as dichotomized data provided in Woods et al. (2010).

Usage

data(woods2)

Format

A data frame for network meta-analysis with 3 trials.

References

Woods, B. S., Hawkins, N. and Scott, D. A. (2010). Network meta-analysis on the log-hazard scale, combining count and hazard ratio statistics accounting for multi-arm trials: A tutorial. BMC Medical Research Methodology 10: 54.