write.likelihood {MBNMAtime} | R Documentation |
Adds sections of JAGS code for an MBNMA model that correspond to the likelihood
Description
Adds sections of JAGS code for an MBNMA model that correspond to the likelihood
Usage
write.likelihood(
model,
timecourse,
rho = 0,
covar = "varadj",
link = "identity",
sdscale = FALSE,
fun
)
Arguments
model |
A character object of JAGS MBNMA model code |
timecourse |
A character object representing the time-course used in the MBNMA model |
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. |
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:
|
link |
Can take either |
sdscale |
Logical object to indicate whether to write a model that specifies a reference SD
for standardising when modelling using Standardised Mean Differences. Specifying |
fun |
An object of class |
Value
A character vector of JAGS MBNMA model code that includes likelihood components of the model