Package: finalsize 0.2.1.9000

Rosalind Eggo

finalsize: Calculate the Final Size of an Epidemic

Calculate the final size of a susceptible-infectious-recovered epidemic in a population with demographic variation in contact patterns and susceptibility to disease, as discussed in Miller (2012) <doi:10.1007/s11538-012-9749-6>.

Authors:Pratik Gupte [aut, cph], Edwin Van Leeuwen [aut, cph], Adam Kucharski [aut, cph], Rosalind Eggo [ctb, cre], Hugo Gruson [ctb], Thibaut Jombart [ctb], Andree Valle-Campos [ctb], Joshua W. Lambert [rev]

finalsize_0.2.1.9000.tar.gz
finalsize_0.2.1.9000.zip(r-4.7)finalsize_0.2.1.9000.zip(r-4.6)finalsize_0.2.1.9000.zip(r-4.5)
finalsize_0.2.1.9000.tgz(r-4.6-x86_64)finalsize_0.2.1.9000.tgz(r-4.6-arm64)finalsize_0.2.1.9000.tgz(r-4.5-x86_64)finalsize_0.2.1.9000.tgz(r-4.5-arm64)
finalsize_0.2.1.9000.tar.gz(r-4.7-arm64)finalsize_0.2.1.9000.tar.gz(r-4.7-x86_64)finalsize_0.2.1.9000.tar.gz(r-4.6-arm64)finalsize_0.2.1.9000.tar.gz(r-4.6-x86_64)
finalsize_0.2.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
finalsize/json (API)

# Install 'finalsize' in R:
install.packages('finalsize', repos = c('https://epiverse-trace.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/epiverse-trace/finalsize/issues

Pkgdown/docs site:https://epiverse-trace.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • polymod_uk - Example POLYMOD social contact data for the U.K.

On CRAN:

Conda:

epidemic-modellingepidemiologyepiverseoutbreak-analysisrcppsdg-3cpp

7.53 score 15 stars 72 scripts 369 downloads 4 exports 4 dependencies

Last updated from:13278f6800. Checks:2 ERROR, 11 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR149
linux-devel-x86_64ERROR161
source / vignettesOK227
linux-release-arm64OK147
linux-release-x86_64OK152
macos-release-arm64OK128
macos-release-x86_64OK204
macos-oldrel-arm64OK112
macos-oldrel-x86_64OK169
windows-develOK138
windows-releaseOK133
windows-oldrelOK142
wasm-releaseOK160

Exports:final_sizelambda_to_r0r_effr0_to_lambda

Dependencies:backportscheckmateRcppRcppEigen

Ready reckoner for Reff
Setup | Scenarios of contact reduction

Last update: 2025-02-13
Started: 2025-02-13

Calculating the final size of an epidemic
Use case | What we have | What we assume | Defining a value for $R_0$ | Getting population estimates | Modelling population susceptibility | Running final_size | A short-cut for homogeneous populations | References

Last update: 2025-01-13
Started: 2022-11-29

Modelling uncertainty in Râ‚€
Use case | What we have | What we assume | Getting $R_0$, contact and demography data, and susceptibility | Running final_size over $R_0$ samples | Iterate final_size() | With base R | With | Visualise uncertainty in final size

Last update: 2024-06-12
Started: 2022-11-29

Projecting re-emergence risk after waning or new births
Use case | What we have | What we assume | Modelling the initial epidemic | Modelling waning immunity and influx of susceptibles | Projected estimates of effective $R$ | References

Last update: 2024-06-12
Started: 2024-02-22

Modelling heterogeneous susceptibility
Use case | What we have | What we assume | Primer on heterogeneous susceptibility | Getting $R_0$ and contact and demography data | Susceptibility variation between age groups | Calculate the effective $R_0$ | Calculate the final epidemic size | Susceptibility variation within and between age groups | Getting data on within-group susceptibility differences | Heterogeneous susceptibility without social contact heterogeneity | References

Last update: 2024-04-09
Started: 2022-11-29

Theoretical background
From SIR to final size with homogeneous mixing | Varying susceptibility | Final size equation with heterogeneous mixing | References

Last update: 2024-04-09
Started: 2024-04-08

Guide to constructing susceptibility matrices
Use case | What we have | What we assume | Primer on susceptibility matrices | Susceptibility matrix | Demography-in-susceptibility matrix | Homogeneous susceptibility | Case 1: Uniform susceptibility | Heterogeneous susceptibility | Case 2: Susceptibility varies between groups | Case 3: Susceptibility varies both between and within groups | Case 4: Susceptibility varies within groups in different proportion | Case 5: Susceptibility varies within three groups | References

Last update: 2023-11-22
Started: 2023-02-17

Modelling heterogeneous social contacts
Use case | What we have | What we assume | Defining a value for $R_0$ | Heterogeneous social mixing | Getting and preparing contact and demography data | Population susceptibility | Why susceptibility and p_susceptibility are matrices | Running final_size | Visualise final sizes | Final size proportions to counts | References

Last update: 2023-11-22
Started: 2023-02-06

Comparison with a compartmental model
SIR model definition | Final size in a uniformly mixing population | Final size with heterogeneous mixing | Prepare population data | Susceptibility varies between groups | Susceptibility varies within groups in different proportions | Complete immunity to infection in part of the population

Last update: 2023-04-17
Started: 2023-04-17