replace.prior: Replace original priors in an MBNMA model with new priors

View source: R/write.jags.R

replace.priorR 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 \insertCitejagsmanual;textualMBNMAtime).

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.

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


MBNMAtime documentation built on Oct. 14, 2023, 5:08 p.m.