Skip to contents

Replicate network meta-analysis effect permutations

Usage

replicate_network_permutation(
  number_permutations = 100,
  future_seed = TRUE,
  ...
)

Arguments

number_permutations

Number of permutation 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)
)

perm_reps <- replicate_network_permutation(
  number_permutations = 2,
  data = nma_dat,
  study_id = "study",
  treatment_1 = "treatment_1",
  treatment_2 = "treatment_2",
  effect = "effect",
  variance = "variance",
  model_type = "wls"
)
# }