replace.prior {MBNMAtime} | R Documentation |
Replace original priors in an MBNMA model with new priors
Description
Identical to replace.prior()
in MBNMAdose.
Usage
replace.prior(priors, model = NULL, mbnma = NULL)
Arguments
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 Plummer (2017)). |
model |
A character object of JAGS MBNMA model code |
mbnma |
An S3 object of class |
Details
This function takes new priors, as specified by the user, and adds them to the JAGS code from an MBNMA model. New priors replace old priors in the JAGS model.
Values in priors
can include any JAGS functions/distributions
(e.g. censoring/truncation).
Value
A character object of JAGS MBNMA model code that includes the new priors in place of original priors
[Package MBNMAtime version 0.2.4 Index]