Adds sections of JAGS code for an MBNMA model that correspond to beta parameters
write.beta(model, timecourse, fun, UME, class.effect)
A character vector of JAGS MBNMA model code that includes beta parameter components of the model
A character object of JAGS MBNMA model code
A character object representing the time-course used in the MBNMA model
An object of class "timefun"
generated (see Details) using any of
tloglin()
, tpoly()
, titp()
, temax()
, tfpoly()
, tspline()
or tuser()
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")
.
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")
.