Implement code for final_size with susceptibility groups. This is the R-only equivalent of the Rcpp code in #39.
The idea here is to provide finalsize with a function exported to users, and with other internal functions and documentation, that allow the calculation of the final size of an epidemic in a population with heterogeneous mixing and also heterogeneous susceptibility to infection.
Implement code for
final_size
with susceptibility groups. This is the R-only equivalent of the Rcpp code in #39.The idea here is to provide
finalsize
with a function exported to users, and with other internal functions and documentation, that allow the calculation of the final size of an epidemic in a population with heterogeneous mixing and also heterogeneous susceptibility to infection.This is to be achieved by a translation of the Cpp code here https://gitlab.com/epidemics-r/code_snippets/-/blob/feature/newton_solver/include/finalsize.hpp#L20 into R.
This issue includes the following sub-issues: #44 #45 #46 #47 #48