epiverse-trace / finalsize

R package to calculate the final size of an SIR epidemic in populations with heterogeneity in social contacts and disease susceptibility
https://epiverse-trace.github.io/finalsize/
Other
11 stars 7 forks source link

Add function for R_eff #151

Closed pratikunterwegs closed 1 year ago

pratikunterwegs commented 1 year ago

This issue is to request a function to calculate the effective $R_0$ of an epidemic in a population with heterogeneous contacts, and susceptibility. This can be calculated as the largest real eigenvalue of the contact matrix after multiplication with the demography and susceptibility vectors from here https://github.com/epiverse-trace/finalsize/blob/feature/share-cpp/R/final_size.R#L198-L203