h_jags_join_models: Joining 'JAGS' Models

Description Usage Arguments Value Note

View source: R/helpers_jags.R

Description

[Stable]

This helper function joins two JAGS models in the way that the body of the second model is appended to the body of the first model (in this order). After that, the first, body-extended model is returned.

Usage

1
h_jags_join_models(model1, model2)

Arguments

model1

(function)
the first model to join.

model2

(function)
the second model to join.

Value

joined models.

Note

model1 and model2 functions must have a multi-expression body, i.e. braced expression(s). Environments or any attributes of the function bodies are not preserved in any way after joining.


0liver0815/onc-crmpack-test documentation built on Feb. 19, 2022, 12:25 a.m.