Skip to contents

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 c("mbnma", "rjags") generated by running a time-course MBNMA model.

Value

A character object of JAGS MBNMA model code that includes the new priors in place of original priors

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).