write.timecourse {MBNMAtime} | R Documentation |
Adds sections of JAGS code for an MBNMA model that correspond to alpha parameters
Description
Adds sections of JAGS code for an MBNMA model that correspond to alpha parameters
Usage
write.timecourse(model, fun, intercept, positive.scale)
Arguments
model |
A character string representing the MBNMA model in JAGS code |
fun |
An object of class |
intercept |
A boolean object that indicates whether an intercept (written
as |
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). |
timecourse |
A character object that contains JAGS code for the time-course component of the model |
Value
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