View source: R/plot.crossnma.R
plot.crossnma | R Documentation |
Produces a separate plot for each parameter in the JAGS model. Each plot shows iterations vs sampled values.
## S3 method for class 'crossnma'
plot(x, ...)
x |
An object generated by |
... |
Additional arguments (passed on to
|
No return value (plot function).
Tasnim Hamza hamza.a.tasnim@gmail.com
crossnma
, traceplot
## Not run:
# 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
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
set.seed(1909)
fit <- crossnma(mod)
# Trace plot of model parameters
plot(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.