The effect of the distribution of transition rate on dynamics #198
-
Hi Dr.King, Recently, I have strange results fitting an SIRS model: my data showed sustained dynamics, while the estimated Reff is below 1. After sanity check using Using the code at the end, I built a deterministic SIRS model and generated three trajectories of Infected with Can you please comment on this? Or please let me know if there is any error in the code (see below). I appreciate your help. Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You seem to suppose that the two computations will yield similar results. On what basis do you suppose this? The Euler method applied to the differential equation you implement in your "deSolve" version is not equivalent to Euler steps applied to the deterministic map you supply in your "Euler-multinomial" version, is it? However, the two should become closer with smaller step sizes. For example, in the following, I have replaced the timestep of 1 day with a timestep of 1/100 day.
|
Beta Was this translation helpful? Give feedback.
You seem to suppose that the two computations will yield similar results. On what basis do you suppose this?
The Euler method applied to the differential equation you implement in your "deSolve" version is not equivalent to Euler steps applied to the deterministic map you supply in your "Euler-multinomial" version, is it?
However, the two should become closer with smaller step sizes. For example, in the following, I have replaced the timestep of 1 day with a timestep of 1/100 day.