Compute the derivatives for SIP compartmental model:
dS/dt=−(h+ξ)S+rI+ηP+dH(S)+B(t,H)dI/dt=(1−ρ)hS−(r+ξ)I+dH(I)dP/dt=(ρh+ξ)S+ξI−ηP+dH(P)
where H=S+I+P; B(t,H) is the
time-dependent birth rate; and the dH
operator computes derivatives for the demographic model H.
The parameter ξ can be modified by setting mass_treat
to a
non-zero function of time.
# S3 method for class 'SIP'
dXdt(t, y, pars, i)
a numeric vector
The parameters are defined in make_Xpar_SIP