View source: R/run.functions.R
nma.run | R Documentation |
Run an NMA model
nma.run(
data.ab,
treatments = NULL,
method = "common",
link = "identity",
sdscale = FALSE,
...
)
data.ab |
A data frame of arm-level data in "long" format containing the columns:
|
treatments |
A vector of treatment names. If left as |
method |
Can take |
link |
Can take either |
sdscale |
Logical object to indicate whether to write a model that specifies a reference SD
for standardising when modelling using Standardised Mean Differences. Specifying |
... |
Options for plotting in |
Returns an object of class("nma", "rjags")
network <- mb.network(osteopain)
# Get the latest time point
late.time <- get.latest.time(network)
# Get the closest time point to a given value (t)
early.time <- get.closest.time(network, t=7)
# Run NMA on the data
nma.run(late.time$data.ab, treatments=late.time$treatments,
method="random")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.