Skip to content

Commit

Permalink
updated vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
smitdave committed Jan 31, 2024
1 parent 8c3d4a1 commit 06f46f9
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 48 deletions.
6 changes: 5 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ navbar:
href: articles/vc_lemenach.html
- text: Contributing
href: articles/Contributing.html
- text: Basic Concepts
- text: Concepts
menu:
- text: Heterogeneous Transmission
href: articles/heterogeneous_transmission.html
- text: Heterogeneous Biting
href: articles/heterogeneous_biting.html
- text: Heterogeneous Mixing
href: articles/heterogeneous_mixing.html
- text: Environmental Heterogeneity
href: articles/environmental_heterogeneity.html
- text: Adult Mosquito Dynamics
menu:
- text: Ross-Macdonald model
Expand Down
17 changes: 17 additions & 0 deletions vignettes/environmental_heterogeneity.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Environmental Heterogeneity"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Environmental Heterogeneity}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

Heterogeneous blood feeding is a basic feature of malaria transmission (see [Heterogeneous Transmission](heterogeneous_transmission.html)). In `exDE` the term **environmental heterogeneity** is used to describe the distribution of the mean within a homogenous human population stratum. The approach is motivated by a study of heterogeneous exposure by (Cooper L, *et al.*, 2019)^[Cooper L, Kang SY, *et al.* (2019). Pareto rules for malaria super-spreaders and super-spreading. Nat Commun 10, 3939, https://doi.org/10.1038/s41467-019-11861-y].
39 changes: 38 additions & 1 deletion vignettes/heterogeneous_biting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,41 @@ knitr::opts_chunk$set(
)
```

Heterogeneous blood feeding is a basic feature of malaria transmission. In `exDE,` heterogeneous blood feeding includes several distinct components: biting weights and heterogeneous biting; environmental heterogeneity; and time spent / time at risk.
Heterogeneous blood feeding is a basic feature of malaria transmission (see [Heterogeneous Transmission](heterogeneous_transmission.html)). In `exDE,` the term **heterogeneous biting** is used to describe differences in the expected rate of exposure among population strata.

To be more rigorous, let $h$ denote the *average* force of infection (FoI) for a population with multiple strata, and $\xi_i$ the frailty term, then the FoI for the $i^{th}$ stratum is $$h_i = \xi_i h;$$

## Heterogeneous Biting

**Heterogeneous Biting** is defined throughout the `exDE` implementation and documentation as a difference in the relative biting rates for two strata that are otherwise identical. The implementation relies on two concepts:

+ **blood feeding search weights** or $\left\{\omega\right\}$

+ **relative biting rates** or $\left\{\xi\right\}$

### Blood Feeding Search Weights

A flexible implementation is handled through the blood feeding model, which includes the the concepts of *blood feeding search weights* and *availability*. The search weights, $\left\{\omega\right\}$, are a measure of how easy it is for mosquitoes to find and blood feed on a host. The total *availability* of humans for blood feeding is:

$$W = \sum_i \omega_i H_i.$$
Availability is used to compute the overall blood feeding rate for mosquitoes and the human fraction (human blood meals as a fraction of all blood meals). If we assign a biting weight to a stratum, then the fraction of bites received by that stratum is:

$$ \frac{\omega_i H_i}W.$$

### Relative Biting Rates

If we let $h$ denote the *average* force of infection (FoI) for a population with multiple strata, and $\xi_i$ the frailty term, then the FoI for the $i^{th}$ stratum is $$h_i = \xi_i h;$$

We let $H_i$ denote the size of the $i^{th}$ population, where $$H = \sum_i H_i.$$

The relative biting rates are constrained such that
$$\sum_i \xi_i \frac{H_i}H = 1$$
For example, if 20% of the population gets bitten at a rate that is twice as high as the population average, then the other 80% must get bitten (on average) at a rate that is 3/4 the population average, since:

$$ 2\;(0.2)+ 0.75\;(0.8)= 1$$



Relative biting rates are computed automatically from the blood feeding search weights, $\left\{\omega\right\},$ where

$$\xi_i = \omega_i \frac H W.$$
17 changes: 17 additions & 0 deletions vignettes/heterogeneous_mixing.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Heterogeneous Mixing"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Heterogeneous Mixing}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

Heterogeneous blood feeding is a basic feature of malaria transmission (see [Heterogeneous Transmission](heterogeneous_transmission.html). In `exDE,` the term **heterogeneous biting** is used to describe differences in the expected rate of exposure among population strata. Other departures from being *well-mixed* fall under the category of *heterogeneous mixing.* Computation of the mixing matrix, $\beta$, is described in detail by Wu SL, *et al.*, (2023)^[Wu SL, Henry JM, Citron DT, *et al.* (2023). Spatial dynamics of malaria transmission. PLoS Comput Biol 19: e1010684, https://doi.org/10.1371/journal.pcbi.1010684].
51 changes: 5 additions & 46 deletions vignettes/heterogeneous_transmission.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,57 +18,16 @@ Blood feeding is an interaction among humans and mosquitoes. Parasite transmissi

+ **Mosquito populations** are heterogeneous over space and time. Spatial dynamics in `exDE` are organized around the concept of a *patch.* The adult mosquito populations in each *state* are assumed to be homogeneously distributed within each patch.

+ **Human population heterogeneity:** human populations are heterogeneous in several ways that affect malaria epidemiology and transmission, including age, the location of their primary residence, the type of house, mobility patterns and time spent, the use of bed nets and other personal protections, blood type, and nutrition. The design of `exDE` makes it possible to *sub-divide* the human population into an arbitrary number of homogenous strata.
+ **Human populations:** and human behaviors are heterogeneous in ways that affect exposure and transmission. The design of `exDE` makes it possible to *sub-divide* the human population into an arbitrary number of homogeneous strata.

+ **Blood Feeding Search Weights:** Mosquitoes fly around to find a blood meal.
Heterogeneous transmission includes at least three distinct concepts:

+ **Time at Risk:** Humans spend time in different patches.
+ [Heterogeneous Mixing](heterogeneous_mixing.html)

+ [Heterogeneous Biting](heterogeneous_mixing.html)

+ environmental heterogeneity
+ [Environmental Heterogeneity](environmental_heterogeneity.html)

## Heterogeneous Biting

**Heterogeneous Biting** is defined throughout the `exDE` implementation and documentation as a difference in the relative biting rates for two strata that are otherwise identical. The implementation relies on two concepts:

+ **blood feeding search weights** or $\left\{\omega\right\}$

+ **relative biting rates** or $\left\{\xi\right\}$

### Blood Feeding Search Weights

A flexible implementation is handled through the blood feeding model, which includes the the concepts of *blood feeding search weights* and *availability*. The search weights, $\left\{\omega\right\}$, are a measure of how easy it is for mosquitoes to find and blood feed on a host. The total *availability* of humans for blood feeding is:

$$W = \sum_i \omega_i H_i.$$
Since mosquitoes could feed on alternative blood hosts, we let $B = W+O,$ where $O$ is the availability of other blood hosts. Using the fully defined blood feeding model, we compute the blood feeding rates $f$ as a functional response to the total availability of blood, $B$:

$$f = F_f(B).$$
and the human fraction is:

$$q = \frac W B.$$

Availability is used to compute the overall blood feeding rate for mosquitoes and the human fraction (human blood meals as a fraction of all blood meals). If we assign a biting weight to a stratum, then the fraction of bites received by that stratum is:

$$ \frac{\omega_i H_i}W.$$

### Relative Biting Rates

If we let $h$ denote the *average* force of infection (FoI) for a population with multiple strata, and $\xi_i$ the frailty term, then the FoI for the $i^{th}$ stratum is $$h_i = \xi_i h;$$

We let $H_i$ denote the size of the $i^{th}$ population, where $$H = \sum_i H_i.$$

The relative biting rates are constrained such that
$$\sum_i \xi_i \frac{H_i}H = 1$$
For example, if 20% of the population gets bitten at a rate that is twice as high as the population average, then the other 80% must get bitten (on average) at a rate that is 3/4 the population average, since:

$$ 2\;(0.2)+ 0.75\;(0.8)= 1$$



Relative biting rates are computed automatically from the blood feeding search weights, $\left\{\omega\right\},$ where

$$\xi_i = \omega_i \frac H W.$$

## Heterogeneous Mixing


0 comments on commit 06f46f9

Please sign in to comment.