Scaling the contact matrix to have a dominant eigenvalue of 1 is a bit tricky to do by hand, but all the code to do it is already part of the package, so instead of throwing an error:
Error in finalsize::final_size(r0 = 1.5, combine_m, demo, susceptibility, :
Error: contact matrix must have a maximum real eigenvalue of 1.0
it would be nice if the package could provide a helper function to do that for you. The helper function should only need the current contact matrix and the population vector.
Scaling the contact matrix to have a dominant eigenvalue of 1 is a bit tricky to do by hand, but all the code to do it is already part of the package, so instead of throwing an error:
it would be nice if the package could provide a helper function to do that for you. The helper function should only need the current contact matrix and the population vector.