mSIR: Interactive applet for exploring the SIR epidemic disease...

Description Usage Arguments Details Value Author(s) Examples

Description

Displays a phase portrait of the number of susceptible, infected, and recovered populations against t

Usage

1
mSIR(lwd=3, type='l', ...)

Arguments

lwd

width of lines used in plots

type

type of plot to display. See xyplot for possible values of this argument.

...

additional arguments passed to xyplot.

Details

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.

Value

A function that implements and displays the current state of each group in the SIR model at many points in time.

Author(s)

Andrew Rich (andrew.joseph.rich@gmail.com) and Daniel Kaplan (kaplan@macalester.edu)

Examples

1
2
3
	if(require(manipulate)){
		mSIR()
	}

mosaicManip documentation built on May 2, 2019, 5:48 p.m.