Description Usage Arguments Details Value Author(s) Examples
Displays a phase portrait of the number of susceptible, infected, and recovered populations against t
1 |
lwd |
width of lines used in plots |
type |
type of plot to display. See |
... |
additional arguments passed to |
Using the sliders, a user may control the probability of infection, the number of contacts per day, duration of disease decay, the number of the initial population that is infected, and finally the number of births per day. With these parameters, the model can be substantially altered. For example, if the probability of infection is high and contact is high, the disease sweeps through the population quickly. If probability of infection and contact are low, the disease may not infect every member of the population. If there are many babies added per day and a long disease decay, sometimes a recurring epidemic occurs. The model starts with a population of 1000 initially and runs for 100 days.
A function that implements and displays the current state of each group in the SIR model at many points in time.
Andrew Rich (andrew.joseph.rich@gmail.com) and Daniel Kaplan (kaplan@macalester.edu)
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.