Description Usage Arguments Value

View source: R/vax_alloc_funcs.R

allocate vaccines according to absolute incidence in each location, then allocate uniformly within each country (without discriminating between ages/risk groups/infection statuses)

1 2 | ```
vaccinate_by_incidence(sum_age_risk_func, travel_matrix, vax_allocation_params,
S, E, I, R, SV, EV, IV, RV, incidence, vax_pool)
``` |

`sum_age_risk_func` |
a function which sums a vector across age and risk groups (created automatically in the code) |

`travel_matrix` |
a square matrix with side length n_countries. Travel_matrix[x,y] is the proportion of time an individual in location x spends in location y |

`vax_allocation_params` |
list of parameters for vaccine allocation |

`S` |
numeric vector of length n. number of unvaccinated susceptibles. n is number of locations * number of age groups * number of risk groups |

`E` |
numeric vector of length n. number of unvaccinated exposed |

`I` |
numeric vector of length n. number of unvaccinated infectious |

`R` |
numeric vector of length n. number of unvaccinated recovered |

`SV` |
numeric vector of length n. number of vaccinated susceptibles. |

`EV` |
numeric vector of length n. number of vaccinated exposed |

`IV` |
numeric vector of length n. number of vaccinated infectious |

`RV` |
numeric vector of length n. number of vaccinated recovered |

`incidence` |
numeric vector of length n. incidence |

`vax_pool` |
numeric vector of length 1. number of vaccines available |

n_vax_allocated numeric vector of length n_countries. number of vaccines allocated to each country

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.