- network
An object of class "mb.network"
.
- fun
An object of class "timefun"
generated (see Details) using any of
tloglin()
, tpoly()
, titp()
, temax()
, tfpoly()
, tspline()
or tuser()
- positive.scale
A boolean object that indicates whether all continuous
mean responses (y) are positive and therefore whether the baseline response
should be given a prior that constrains it to be positive (e.g. for scales that cannot be <0).
- intercept
A boolean object that indicates whether an intercept (written
as alpha
in the model) is to be included. If left as NULL
(the default), an intercept will
be included only for studies reporting absolute means, and will be excluded for
studies reporting change from baseline (as indicated in network$cfb
).
- link
Can take either "identity"
(the default),
"log"
(for modelling Ratios of Means friedrich2011MBNMAtime) or
"smd"
(for modelling Standardised Mean Differences - although this also corresponds to an identity link function).
- sdscale
Logical object to indicate whether to write a model that specifies a reference SD
for standardising when modelling using Standardised Mean Differences. Specifying sdscale=TRUE
will therefore only modify the model if link function is set to SMD (link="smd"
).
- parameters.to.save
A character vector containing names of parameters
to monitor in JAGS
- rho
The correlation coefficient when modelling within-study correlation between time points. The default is a string representing a
prior distribution in JAGS, indicating that it be estimated from the data (e.g. rho="dunif(0,1)"
). rho
also be assigned a
numeric value (e.g. rho=0.7
), which fixes rho
in the model to this value (e.g. for use in a deterministic sensitivity analysis).
If set to rho=0
(the default) then this implies modelling no correlation between time points.
- covar
A character specifying the covariance structure to use for modelling within-study correlation between time-points. This can
be done by specifying one of the following:
"varadj"
- a univariate likelihood with a variance adjustment to assume a constant correlation between subsequent
time points jansen2015MBNMAtime. This is the default.
"CS"
- a multivariate normal likelihood with a
compound symmetry structure
"AR1"
- a multivariate normal likelihood with an
autoregressive AR1 structure
- corparam
A boolean object that indicates whether correlation should be modeled
between relative effect time-course parameters. Default is FALSE
and this is automatically set to FALSE
if class effects are modeled.
Setting it to TRUE
models correlation between time-course parameters. This can help identify parameters
that are estimated poorly for some treatments by allowing sharing of information between
parameters for different treatments in the network, but may also cause some shrinkage.
- class.effect
A list of named strings that determines which time-course
parameters to model with a class effect and what that effect should be
("common"
or "random"
). For example: list(emax="common", et50="random")
.
- UME
Can take either TRUE
or FALSE
(for an unrelated mean effects
model on all or no time-course parameters respectively) or can be a vector
of parameter name strings to model as UME. For example: c("beta.1", "beta.2")
.
- parallel
A boolean value that indicates whether JAGS should be run in
parallel (TRUE
) or not (FALSE
). If TRUE
then the number of cores to
use is automatically calculated. Functions that involve updating the model (e.g. devplot()
, fitplot()
)
cannot be used with models implemented in parallel.
- priors
A named list of parameter values (without indices) and
replacement prior distribution values given as strings
using distributions as specified in JAGS syntax (see jagsmanual;textualMBNMAtime).
- n.iter
number of total iterations per chain (including burn in; default: 20000)
- n.chains
number of Markov chains (default: 3)
- n.burnin
length of burn in, i.e. number of iterations to discard at the
beginning. Default is n.iter/2``, that is, discarding the first half of the simulations. If
n.burnin` is 0, jags() will run 100 iterations for adaption.
- n.thin
thinning rate. Must be a positive integer. Set n.thin > 1`` to save memory and computation time if
n.iteris large. Default is
max(1, floor(n.chains * (n.iter-n.burnin) / 1000))`` which will only thin if there are at least 2000
simulations.
- pD
logical; if TRUE
(the default) then adds the computation of pD, using the method
of plummer2008MBNMAtime. If FALSE
then uses the
approximation of pD=var(deviance) / 2
(often referred to as pV).
- model.file
The file path to a JAGS model (.jags file) that can be used
to overwrite the JAGS model that is automatically written based on the
specified options in MBNMAtime
. Useful for adding further model flexibility.
- jagsdata
A named list of the data objects to be used in the JAGS model. Only
required if users are defining their own JAGS model using model.file
. Format
should match that of standard models fitted in MBNMAtime
(see mbnma$model.arg$jagsdata
)
- ...
Arguments to be sent to R2jags.