Skip to contents

Replicate network meta-analysis bootstraps

Usage

replicate_network_bootstrap(number_bootstraps = 100, future_seed = TRUE, ...)

Arguments

number_bootstraps

Number of bootstrap replications.

future_seed

Seed control forwarded to future.apply::future_lapply(future.seed = ...).

...

Additional arguments passed to bootstrap_network_meta.

Value

A list of fitted "nma_mars" replicate objects.

Examples

# \donttest{
nma_dat <- data.frame(
  study = c("S1", "S2", "S3", "S4"),
  treatment_1 = c("A", "A", "B", "A"),
  treatment_2 = c("B", "C", "C", "B"),
  effect = c(0.20, 0.35, 0.10, 0.15),
  variance = c(0.04, 0.05, 0.04, 0.06)
)

boot_reps <- replicate_network_bootstrap(
  number_bootstraps = 2,
  data = nma_dat,
  study_id = "study",
  treatment_1 = "treatment_1",
  treatment_2 = "treatment_2",
  effect = "effect",
  variance = "variance",
  model_type = "wls"
)
# }