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).

summary.nosoiSim