Title: | Contains model and calibration options and helper functions for Naomi |
---|---|
Description: | Contains model and calibration option JSON and default values and helper functions for Naomi. |
Authors: | Robert Ashton [aut, cre] |
Maintainer: | Robert Ashton <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.2.1 |
Built: | 2024-10-31 05:36:08 UTC |
Source: | https://github.com/mrc-ide/naomi.options |
Map calibration option ID to JSON calibration option labels
get_calibration_option_labels(options)
get_calibration_option_labels(options)
options |
Key-value (calibration option name - calibration option ID) list of model options to be mapped. |
Mapped key-value (calibration option name - calibration option label) list of model options
This gets the JSON for the model or calibration options for a particular country. The control info will be filled in in this order of precedence
override_values
arg (if set)
hardcoded default values from default_options.csv
get_controls_json(type, iso3, options, override_values, config = list())
get_controls_json(type, iso3, options, override_values, config = list())
type |
The type of options to get, model or calibration |
iso3 |
The iso3 of the country to get options for |
options |
A named list of options to override those in JSON template. Must be in the format of a list of control options i.e. list( control_id = list( list( id = "1", label = "one" ), list( id = "2", label = "two" ) ), ... ) |
override_values |
A list of named values to use as default values. This will take precedent over a hardcoded value if both are set. |
config |
Additional configuration options for returned JSON. If
type is 'model' can set boolean 'include_art' and 'include_anc' to
include options for ART and ANC controls. You can also pass
|
The complete controls JSON
Take a vector of labels and translate
translate_labels(labels, lang = traduire::translator()$language())
translate_labels(labels, lang = traduire::translator()$language())
labels |
Vector of labels, the translation keys |
lang |
Language to return output in |
Translated labels for current language