run_series_meta {rnmamod} | R Documentation |
Perform a series of Bayesian pairwise meta-analyses
Description
Performs a Bayesian pairwise meta-analysis for each pairwise comparison with at least two trials in the network.
Usage
run_series_meta(full, n_chains, n_iter, n_burnin, n_thin, inits = NULL)
Arguments
full |
|
n_chains |
Integer specifying the number of chains for the MCMC
sampling; an argument of the |
n_iter |
Positive integer specifying the number of Markov chains for the
MCMC sampling; an argument of the |
n_burnin |
Positive integer specifying the number of iterations to
discard at the beginning of the MCMC sampling; an argument of the
|
n_thin |
Positive integer specifying the thinning rate for the MCMC
sampling; an argument of the |
inits |
A list with the initial values for the parameters; an argument
of the |
Details
run_series_meta
inherits the arguments data
,
measure
, model
, assumption
, heter_prior
,
mean_misspar
, and var_misspar
from run_model
(now contained in the argument full
). This prevents specifying
a different Bayesian model from that considered in run_model
.
Therefore, the user needs first to apply run_model
, and then
use run_series_meta
(see 'Examples').
For a binary outcome, when measure
is "RR" (relative risk) or "RD"
(risk difference) in run_model
, run_series_meta
currently performs a series of pairwise meta-analysis using the odds ratio
as effect measure for being the base-case effect measure in
run_model
for a binary outcome (see also 'Details' in
run_model
).
run_series_meta
runs a series of Bayesian pairwise meta-analyses
in JAGS
. The progress of the simulation appears on the R console.
The number of times the function is used is also printed on the console
(in red) and is equal to the number of observed pairwise comparisons
in the network (see 'Examples').
The model is updated until convergence using the
autojags
function of the R-package
R2jags with 2 updates and
number of iterations and thinning equal to n_iter
and n_thin
,
respectively.
The output of run_series_meta
is not end-user-ready. The
series_meta_plot
function inherits the output of
run_series_meta
as an S3 object and processes it further to provide
an end-user-ready output.
run_series_meta
can be used only for a network of interventions.
In the case of two interventions, the execution of the function will
be stopped and an error message will be printed on the R console.
Value
An R2jags output on the summaries of the posterior distribution, and the Gelman-Rubin convergence diagnostic (Gelman et al., 1992) of the following monitored parameters:
EM |
The summary effect estimate (according to the argument
|
tau |
The between-trial standard deviation for pairwise comparisons with at least two trials, when the random-effects model has been specified. |
single |
A binary vector that indicates the comparisons in |
Author(s)
Loukia M. Spineli
References
Gelman A, Rubin DB. Inference from iterative simulation using multiple sequences. Stat Sci 1992;7(4):457–72. doi: 10.1214/ss/1177011136
See Also
jags
,
run_model
, series_meta_plot
Examples
data("nma.dogliotti2014")
# Show the first six trials of the dataset (one-trial-per-row format)
head(nma.dogliotti2014)
# Read results from 'run_model' (using the default arguments)
res <- readRDS(system.file('extdata/res_dogliotti.rds', package = 'rnmamod'))
# Run separate random-effects pairwise meta-analyses
# Note: Ideally, set 'n_iter' to 10000 and 'n_burnin' to 1000
run_series_meta(full = res,
n_chains = 3,
n_iter = 1000,
n_burnin = 100,
n_thin = 1)