Implements [dXdt] for the SIR model with demography.

# S3 method for SIR
dXdt(t, y, pars, i)

Arguments

t

current simulation time

y

state vector

pars

a list

i

the host species index

Value

a [numeric] vector