Vivarium Standard Results Format¶
The aim of this page is to outline a standard format for Vivarium model results as they appear in the count data that the engineers pass off to the researchers.
Motivation behind standard formatting¶
Standardized formatting of Vivarium model results may be beneficial in the following ways:
Predictability of results format allows researchers to write results processing code in advance of receiving results
Results format consistency enables generalizable results processing code (for researchers and engineers) and reduces the need to code exception cases
Shared language and classification of terms may aid in communication between researchers and engineers
Formatting guide¶
General considerations¶
1. Consistency with GBD names is preferred over internal/other types of
consistency. Generally, GBD names (such as age_group_name, location_name,
cause_name, etc.) should appear in Vivarium results as
{gbd_name}.replace(" ","_").lower()
. Note that sometimes GBD names
things in inconsistent ways. For instance, “6-11 months” and “12 to 23 months”.
However, this will allow us to easily merge Vivarium results and GBD data using
their shared names.
2. Successful execution of these standard formats depends on researcher documentation of requested model outputs within the simulation concept model document.
Todo
Link to updated template doc when ready
3. If a researcher-requested output does not clearly fit within the examples outlined below, researchers and engineers should meet to determine desired results formatting and document the format within the project concept model requested outputs section.
Parameters in results dataframes¶
Parameter |
Value type |
Definition |
Possible values |
---|---|---|---|
|
integer |
Simulated input draw number |
[0, 999] |
|
string |
Simulated scenario name |
|
|
string |
Age group of stratum |
If age is not included as a stratifying variable in the simulation, the age parameter should still be specified in vivarium results data frames according to the simulation minimum and maximum age values. If there is no corresponding GBD age group name, the value should be
formatted as If there is no maximum age, the age age value should be specified as
|
|
string |
Sex of stratum |
|
|
string |
Simulated year |
If year is not included as a stratifying variable in the simulation, the
year parameter should still be specified in vivarium results data frames
with a value of |
|
string |
Some other variable by which to stratify values (in the same way as age, sex, year, etc.). Intervention coverage is a common example. |
Name and values of {other_stratifying_variables} to be defined in advance of implementation by researchers. Example:
|
|
string |
Description of what is being measured about the entity |
|
|
string |
Type of entity being measured |
|
|
string |
Name of entity being measured |
|
|
string |
Name of entity state or category |
|
|
float |
Measured value |
(-inf, inf) |
Note
As a reminder, the definitions of the first and second moments for a continuous exposure measure, \(Y\), for our purposes are defined below.
Using these measures, we can then calculate the population mean and standard deviation values for that continuous exposure by using the sum of person time within the population.
Some examples¶
Result |
Measure |
Entity type |
Entity |
Sub-entity |
---|---|---|---|---|
YLDs due to acute myocardial infarction |
ylds |
cause |
ischemic_heart_disease |
acute_myocardial_infarction |
Deaths due to diarrheal diseases |
deaths |
cause |
diarrheal_diseases |
infected |
Person time in the susceptible to measles state |
person_time |
cause |
measles |
susceptible |
Transitions from measles to recovered from measles |
transition_count |
cause |
measles |
infected__to__recovered |
Person time in severe child stunting (cat1) |
person_time |
rei |
child_stunting |
cat1 |
Hemoglobin first moment |
first_moment |
modelable_entity |
hemoglobin |
not_applicable |
Stillbirths |
births |
fertility |
stillbirth |
not_applicable |
Live births |
births |
fertility |
live_birth |
not_applicable |
First moment of birth weight |
first_moment |
rei |
birth_weight |
not_applicable |
Live births with neural tube defects |
births |
cause |
neural_tube_defects |
infected |