Adds sections of JAGS code for an MBNMA model that correspond to alpha parameters
write.timecourse(model, fun, intercept, positive.scale)
A list of named elements: model
is a character vector of JAGS MBNMA
model code that includes alpha parameter components of the model
timecourse
is a character object that contains JAGS code for the
time-course component of the model, for which alpha will be indexed
correctly
A character string representing the MBNMA model in JAGS code
An object of class "timefun"
generated (see Details) using any of
tloglin()
, tpoly()
, titp()
, temax()
, tfpoly()
, tspline()
or tuser()
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
).
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).
A character object that contains JAGS code for the time-course component of the model