ReportInfectionDuration
The infection duration report (ReportInfectionDuration.csv) records one row each time an infection
clears in an individual, capturing the identity and age of the individual, the node, and the total
duration of that infection in days. Because the report writes a row for every InfectionCleared
event, you may want to use Start_Day and End_Day to limit the output to the time window of
interest.
Configuration
To generate this report, configure the following parameters in the custom_reports.json file:
| Parameter | Data type | Min | Max | Default | Description |
|---|---|---|---|---|---|
Start_Day |
float | 0 | 3.40E+38 | 0 | The day of the simulation to start collecting data. |
End_Day |
float | 0 | 3.40E+38 | 3.40E+38 | The day of the simulation to stop collecting data. |
{
"Reports": [
{
"class": "ReportInfectionDuration",
"Start_Day": 3855,
"End_Day": 4000
}
],
"Use_Defaults": 1
}
Output file data
The output file is named ReportInfectionDuration.csv. The report contains the following columns.
| Column | Data type | Description |
|---|---|---|
Time |
float | The simulation time in days when the infection was cleared. |
NodeID |
integer | The external ID of the node where the individual resides. |
IndividualID |
integer | The unique ID of the individual whose infection cleared. |
Gender |
enum | The gender of the individual. Possible values are M or F. |
AgeYears |
float | The age of the individual in years at the time the infection cleared. |
InfectionDuration |
float | The duration in days of the infection that cleared. |
Example
The following is an example of ReportInfectionDuration.csv.
| Time | NodeID | IndividualID | Gender | AgeYears | InfectionDuration |
|---|---|---|---|---|---|
| 3855 | 340461476 | 27 | M | 10.5644 | 87.75 |
| 3855 | 340461476 | 29 | F | 10.5644 | 56.375 |
| 3855 | 340461476 | 40 | F | 10.5644 | 108.875 |
| 3855 | 340461476 | 107 | M | 10.5178 | 68 |
| 3855 | 340461476 | 240 | F | 9.09041 | 85.875 |
| 3855 | 340461476 | 360 | M | 7.73425 | 64.75 |
| 3855 | 340461476 | 373 | F | 7.67397 | 57.125 |
| 3855 | 340461476 | 376 | M | 7.6411 | 170.625 |
| 3855 | 340461476 | 424 | F | 7.15342 | 151.375 |
| 3855 | 340461476 | 501 | F | 6.43562 | 109.625 |