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

View source: R/write.jags.R

write.timecourseR Documentation

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

Description

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

Usage

write.timecourse(model, fun, intercept, positive.scale)

Arguments

model

A character string representing the MBNMA model in JAGS code

fun

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

intercept

A boolean object that indicates whether an intercept (written as alpha in the model) is to be included. If left as NULL (the default), an intercept will be included only for studies reporting absolute means, and will be excluded for studies reporting change from baseline (as indicated in network$cfb).

positive.scale

A boolean object that indicates whether all continuous mean responses (y) are positive and therefore whether the baseline response should be given a prior that constrains it to be positive (e.g. for scales that cannot be <0).

timecourse

A character object that contains JAGS code for the time-course component of the model

Value

A list of named elements: model is a character vector of JAGS MBNMA model code that includes alpha parameter components of the model timecourse is a character object that contains JAGS code for the time-course component of the model, for which alpha will be indexed correctly


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