print.crossnma {crossnma}R Documentation

Print call used to create JAGS model for cross-design & -format network meta-analysis or regression

Description

Print call used to create JAGS model for cross-design & -format network meta-analysis or regression

Usage

## S3 method for class 'crossnma'
print(x, ...)

Arguments

x

An object of class crossnma.

...

Additional arguments (ignored).

Value

No return value (print function).

Author(s)

Guido Schwarzer sc@imbi.uni-freiburg.de

See Also

crossnma

Examples

# We conduct a network meta-analysis assuming a random-effects
# model.
# The data comes from randomized-controlled trials and
# non-randomized studies (combined naively)
head(ipddata) # participant-level data
head(stddata) # study-level data

# Create a JAGS model
mod <- crossnma.model(treat, id, relapse, n, design,
  prt.data = ipddata, std.data = stddata,
  reference = "A", trt.effect = "random", method.bias = "naive")

# Fit JAGS model
# (suppress warning 'Adaptation incomplete' due to n.adapt = 20)
fit <-
  suppressWarnings(crossnma(mod, n.adapt = 20,
    n.iter = 50, thin = 1, n.chains = 3))
fit


[Package crossnma version 1.0.1 Index]