I am trying to calculate R0 of a model similar to "VIRUS" model in the Netlogo models library.
I referred to code of "EpiDEM Basic" in the models library to get an idea on how to find R0, but I couldn't understand how it works.
My second option was to calculate R0 manually from using the equation: R0 = Infectiousness (beta) / Recovery rate ( gemma).
In a completely susceptible population, the number of new infections produced by the index case is equal to the effective contact rate times the average infectious period ×1/ which, by definition is R0
But, I am not clear whether to pick the value in "chance-to-recover" slider of 1/duration.
Any guidance on a Netlogo code or a manual method (eg: with excel) to calculate R0?