Gets an estimate of secondary cases (what R0 usually tries to estimate) and its distribution from the output of a nosoiSim simulation. The actual calculation is based on inactive hosts at the end of the simulation to avoid bias introduced by hosts that have not finished their transmission potential.

getR0(nosoi.output)

Arguments

nosoi.output

Output of a nosoi simulation (object of class nosoiSim).

Value

A list with the following items:

N.inactive

Number of inactive hosts at the end of the simulation.

R0.mean

Mean R0 based on the distribution (see below).

R0.dist

Distribution for each host of the secondary cases it generated (in case of dual-hosts, then the secondary cases of the same host-type).

Details

Current getR0 (after and including version 1.1.0) is a corrected version. In previous versions (prior to 1.1.0), the output included in its computation hosts that should not have been counted (still active).

See also