write_model: Write the EcoDiet model in BUGS

Description Usage Arguments Value See Also Examples

View source: R/write_model.R

Description

This function writes the EcoDiet model in the BUGS syntax as a several line long string.

The model definition depends on whether or not literature data will be used to inform the priors, hence the parameter literature_configuration.

To know more about what is inside the model, please read the reference article.

Usage

1
write_model(literature_configuration = FALSE)

Arguments

literature_configuration

A boolean (TRUE or FALSE) indicating whether the model will have prior distributions informed by a literature study

Value

A string containing the model definition in BUGS

See Also

run_model to run the model after it has been defined

Examples

1
2
3
4
5
model_string_1 <- write_model(literature_configuration = TRUE)
cat(model_string_1)

model_string_2 <- write_model(literature_configuration = FALSE)
cat(model_string_2)

heloisethero/EcoDiet documentation built on Feb. 12, 2020, 6:08 p.m.