Description Usage Arguments Value See Also Examples
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.
1 | write_model(literature_configuration = FALSE)
|
literature_configuration |
A boolean (TRUE or FALSE) indicating whether the model will have prior distributions informed by a literature study |
A string containing the model definition in BUGS
run_model
to run the model after it has been defined
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.