inst/comparative_dynamics.md

% Comparative Dynamics % Noam Ross % 14-08-25 10:10:34

Here I examine the comparative dynamics of age classes in 2-age-class models of both $SI$, $SIV$, and macroparasite-style dynamic models.

The following parameters are identical between models:

The models are also parameterized to have identical apparent mortality rates at equilibrium. That is the aggregate mortality rates of all infection classes are the same.

## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_SI' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_SIV' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_macro' not found
## Error: object 'macrosf' not found
## Error: object 'SizeClass' not found
## Error: object of type 'closure' is not subsettable
## Error: object of type 'closure' is not subsettable
## Error: ggplot2 doesn't know how to deal with data of class function
## Error: object 'SIVsf' not found
## Error: object 'df2' not found
## Error: object 'df2' not found
## Error: object 'df2' not found
## Error: object 'df2' not found
## Error: object 'stats_SI.m' not found
## Error: object 'stats' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'p1' not found
## Error: object of type 'closure' is not subsettable
## Error: object 'lwidth' not found
## Error: object 'p1' not found
## Error: could not find function "run_sodp"
## Error: object 'aa' not found
## Error: object 'mod_SIV' not found
## Error: object 'mod_SIV' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_SIVmod' not found
## Error: could not find function "run_sodp"
## Error: object 'bb' not found
## Error: object 'mod_macro' not found
## Error: object 'mod_macro' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_macromod' not found
## Error: object 'stats_SI.m' not found
## Error: object 'stats' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'p1' not found
## Error: object of type 'closure' is not subsettable
## Error: object 'lwidth' not found
## Error: object 'p1' not found
## Error: could not find function "init_derivs2"
## Error: could not find function "init_derivs2"
## Error: object 'aa' not found
## Error: object 'mod_SIV' not found
## Error: object 'mod_SIV' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_SIVmod2' not found
## Error: object 'aa' not found
## Error: object 'bb' not found
## Error: object 'mod_macro' not found
## Error: object 'mod_macro' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_macromod2' not found
## Error: object 'stats_SI.m' not found
## Error: object 'stats' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'p1' not found
## Error: object of type 'closure' is not subsettable
## Error: object 'lwidth' not found
## Error: object 'p1' not found
## Error: object 'stats_SI' not found
## Error: object 'sit' not found
## Error: object 'sit' not found
## Error: could not find function "run_sodp"
## Error: object 'cc' not found
## Error: object 'mod_SIV' not found
## Error: object 'mod_SIV' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_SIVmod3' not found
## Error: object 'cc' not found
## Error: object 'dd' not found
## Error: object 'mod_macro' not found
## Error: object 'mod_macro' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_macromod3' not found
## Error: object 'stats_SI.m' not found
## Error: object 'stats' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'p1' not found
## Error: object of type 'closure' is not subsettable
## Error: object 'lwidth' not found
## Error: object 'p1' not found
## Error: object 'stats_SI' not found
## Error: object 'sit' not found
## Error: object 'sit' not found
## Error: object 'sit' not found
## Error: could not find function "run_sodp"
## Error: object 'ee' not found
## Error: object 'mod_SIV' not found
## Error: object 'mod_SIV' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_SIVmod4' not found
## Error: object 'ee' not found
## Error: object 'ff' not found
## Error: object 'mod_macro' not found
## Error: object 'mod_macro' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_macromod4' not found
## Error: object 'stats_SI.m' not found
## Error: object 'stats' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'p1' not found
## Error: object of type 'closure' is not subsettable
## Error: object 'lwidth' not found
## Error: object 'p1' not found
## Error: object 'stats_SI' not found
## Error: object 'sit' not found
## Error: object 'sit' not found
## Error: object 'stats_SI' not found
## Error: could not find function "run_sodp"
## Error: object 'gg' not found
## Error: object 'mod_SIV' not found
## Error: object 'mod_SIV' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_SIVmod5' not found
## Error: object 'gg' not found
## Error: object 'hh' not found
## Error: object 'mod_macro' not found
## Error: object 'mod_macro' not found
## Error: could not find function "run_sodp"
## Error: could not find function "process_sodp"
## Error: could not find function "sodp_totals"
## Error: could not find function "sodp_stats"
## Error: object 'stats_macromod5' not found
## Error: object 'stats_SI.m' not found
## Error: object 'stats' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'stats' not found
## Error: object 'mortInf' not found
## Error: object 'p1' not found
## Error: object of type 'closure' is not subsettable
## Error: object 'lwidth' not found
## Error: object 'p1' not found

Currently matching model by equilibrium mortality. Next, match the models by initial growth behavior. That is, growth rate at time zero, or R0. How do models behave comparatively if they have initial growth rate of infected individuals that is the same? What if we peg both initial rate and final equilibrium mortality rate, but free both $\alpha$ and $\lambda$ to vary independently? How will models behave differently?

Need too calculate this rate for the given initial number of infected individuals Model may need to be modified to only have initial infected individuals be of lowest disease class, not all disease classes.

At initiation, when all individuals are either susceptible or only have one infection, the growth in infected individuals is

$$\lambda_{I_1} - d - \alpha$$

Note that the 2nd derivative of $V$ is very small no matter when $I$ is small at $V=H=0$:

$$\frac{d^2V}{dt^2} = - I^{3} \lambda^{2} + I^{2} \left(2 S \lambda^{2} - 4 \alpha \lambda - 3 d \lambda\right)$$



noamross/age-infects documentation built on May 23, 2019, 9:30 p.m.