write.beta: Adds sections of JAGS code for an MBNMA model that correspond...

View source: R/write.jags.R

write.betaR Documentation

Adds sections of JAGS code for an MBNMA model that correspond to beta parameters

Description

Adds sections of JAGS code for an MBNMA model that correspond to beta parameters

Usage

write.beta(model, timecourse, fun, UME, class.effect)

Arguments

model

A character object of JAGS MBNMA model code

timecourse

A character object representing the time-course used in the MBNMA model

fun

An object of class "timefun" generated (see Details) using any of tloglin(), tpoly(), titp(), temax(), tfpoly(), tspline() or tuser()

UME

Can take either TRUE or FALSE (for an unrelated mean effects model on all or no time-course parameters respectively) or can be a vector of parameter name strings to model as UME. For example: c("beta.1", "beta.2").

class.effect

A list of named strings that determines which time-course parameters to model with a class effect and what that effect should be ("common" or "random"). For example: list(emax="common", et50="random").

Value

A character vector of JAGS MBNMA model code that includes beta parameter components of the model


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