forked from mrc-ide/postie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
50 lines (38 loc) · 1.77 KB
/
Copy pathREADME.Rmd
File metadata and controls
50 lines (38 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# postie <img src="man/figures/Postie.png" align="right" width=30% height=30% />
<!-- badges: start -->
[](https://www.repostatus.org/#wip)
[](https://github.com/mrc-ide/postie/actions)
[](https://codecov.io/github/mrc-ide/postie)
<!-- badges: end -->
Use postie to post-process [malariasimulation](https://mrc-ide.github.io/malariasimulation/) model output.
Postie requires are few conventions to work:
1. that age-bands for clinical and severe incidence must be the same.
In practice this means you will need to set, for example:
```
year <- 365
min_ages <- year * 0:99
max_ages <- year * 1:100
parameters$clinical_incidence_rendering_min_ages = min_ages
parameters$clinical_incidence_rendering_max_ages = max_ages
parameters$severe_incidence_rendering_min_ages = min_ages
parameters$severe_incidence_rendering_max_ages = max_ages
```
2. that `ft` (treatment coverage) is an output variable. This will most likely be
a result of setting treatment in the simulation, for example:
```
parameters |>
malariasimulation::set_drugs(list(malariasimulation::AL_params)) |>
malariasimulation::set_clinical_treatment(1, 50, 0.5)
```
alternatively, if no treatment is implemented, you could just add `ft = 0` to the
simulation output before using postie.