Skip to contents

Fits a treatment-design network meta-analysis to arm-level continuous data while constructing multi-arm, outcome, and repeated-time sampling covariance internally, then uses the shared joint network likelihood.

Usage

network_meta_repeated(
  data,
  study_id,
  treatment,
  mean,
  sd,
  n,
  outcome = NULL,
  time = NULL,
  reference = NULL,
  treatment_effects = c("common", "by_outcome", "by_time", "by_outcome_time"),
  outcome_correlation = c("independence", "exchangeable"),
  time_correlation = c("independence", "exchangeable", "ar1"),
  rho_outcome = 0,
  rho_time = 0,
  heterogeneity = c("none", "common"),
  estimation_method = c("REML", "ML"),
  ci_level = 0.95,
  measure = c("MD", "SMD"),
  standardizer = "pair_pooled",
  arm_observation_id = NULL,
  correlations = NULL,
  overlap = NULL,
  assume_independent = FALSE,
  adjust = c("none", "holm", "bonferroni")
)

Arguments

data

Data frame with one row per study, treatment arm, outcome, and optional time combination.

study_id, treatment, mean, sd, n

Character strings naming study, treatment, arm mean, arm standard deviation, and arm sample-size columns.

outcome, time

Optional character strings identifying outcomes and follow-up occasions. Omit either when it is not present.

reference

Optional reference treatment. Defaults to the first sorted treatment.

treatment_effects

Whether treatment effects are common, outcome specific, time specific, or outcome-by-time specific.

outcome_correlation, time_correlation

Correlation structures used to construct covariance among means from the same arm. "independence" and "exchangeable" are available for outcomes; "independence", "exchangeable", and "ar1" are available for time.

rho_outcome, rho_time

Correlations for exchangeable or AR(1) structures. Values must be between minus one and one.

heterogeneity

Either "none" for generalized least squares or "common" for a common contrast-level random-effects variance estimated by ML or REML.

estimation_method

Either "REML" or "ML" when common heterogeneity is estimated.

ci_level

Confidence level for coefficient intervals.

measure

MD uses independent arm-mean covariance; SMD uses network_smd_data() and the one-stage coherent engine.

standardizer

SMD denominator definition passed to network_smd_data().

arm_observation_id

Unique arm measurement ID column for SMD covariance.

correlations, overlap

Named study matrices for SMD individual correlations and participant overlap; see network_smd_data().

assume_independent

Explicit independent-measurement assumption for SMDs.

adjust

none, holm, or bonferroni for all reported treatment pair/stratum p-values. Confidence intervals remain pointwise.

Value

An object of class nma_repeated_mars containing the derived contrast data, internally constructed study covariance blocks, coefficient summary, fitted covariance, and heterogeneity estimate.

Details

The function currently supports arm-level continuous mean differences. Multi-arm covariance is derived exactly under independent arms. Outcome and time covariance are derived from the chosen correlation assumptions; these assumptions are retained in the fitted object. For time correlation "ar1", equally spaced ordered occasions are assumed unless time is numeric, in which case correlation is rho_time raised to the absolute time distance. Heterogeneity uses coherent signed treatment contrasts.

References

Higgins, J. P. T., 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. doi:10.1002/jrsm.1044 .

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

Examples

dat <- data.frame(
  study = rep(c("S1", "S2", "S3"), each = 2),
  trt = rep(c("A", "B"), 3), mean = c(10, 12, 9, 11, 11, 14),
  sd = 2, n = 30
)
network_meta_repeated(dat, "study", "trt", "mean", "sd", "n")
#> Results generated with MARS: v0.6.1
#> Printed on: Tuesday, November 24, 2026
#> 
#> Joint coherent network meta-analysis
#> ====================================
#> 
#> Network overview
#>   Studies:                         3
#>   Pairwise comparisons:            3
#>   Treatments:                      2
#>   Designs:                         1
#>   Unique study treatment pairs:    1
#>   Modeled contrast rows:           3
#>   Pairwise comparisons count each treatment pair once per study,
#>   including implied multi-arm pairs; unique pairs are counted once overall.
#> 
#> Model settings
#>   Interface:                       coherent
#>   Reference treatment:             A
#>   Effect direction:                Treatment minus A
#>   Estimation:                      REML
#>   Sampling covariance:             supplied covariance
#>   Heterogeneity structure:         none
#>   Inference:                       model
#>   Test reference distribution:     Normal (z)
#>   Convergence code:                0
#>   Covariance boundary:             TRUE
#>   Treatment p-value adjustment:    none
#>   Adjustment family size:          1
#> 
#> Residual variation (sampling covariance only)
#>        Component         Q df   p-value     I2 (%)
#>          Overall 2.5000000  2 0.2865048 20.0000000
#>   Within designs 2.5000000  2 0.2865048 20.0000000
#>  Between designs 0.0000000  0        NA         NA
#>   Overall Q/I2 include within-design heterogeneity and between-design incoherence.
#>   I2 is Q-based (%); overall and within-design I2 are not additive.
#>   These are sampling-only diagnostics, separate from the random-effects Higgins test.
#> 
#> Fitted variance components
#>  component      tau2
#>      study 0.0000000
#> 
#> Treatment contrasts (treatment minus A; reference comparisons):
#> Raw p-values; confidence intervals: pointwise.
#>  contrast     total  total_se statistic total_ci_lower total_ci_upper
#>     B - A 2.3333333 0.2981424 7.8262379      1.7489850      2.9176817
#>  total_p_value total_p_adjusted
#>        <0.0001          <0.0001