This function simulates recovery from the infected state
either to a distinct recovered state (SIR model type) or back
to a susceptible state (SIS model type), for use in
netsim().
Arguments
- dat
Main
netsim_datobject containing anetworkDynamicobject and other initialization information passed fromnetsim().- at
Current time step.