SIRjump: Simulates one jump from a simple stochastic SIS epidemic...

Description Usage Arguments Value Examples

Description

SIRjump returns states of next jump given the states right now in SIR model.

Usage

1
SIRjump(x, pars)

Arguments

x

A numeric vector: (time, S, I, R, N) at the previous jump.

pars

A numeric vector: (alpha, pI, beta, gamma, pR).

Value

A numeric vector: (time, S, I, R, N) immediately after the next jump.

Examples

1
2
3
A <- c(0,1000,0,0,1000)
B <- c(1,0.1,2,1,0.9)
SIRjump(A,B)

jessseliu/epidmod documentation built on Sept. 15, 2020, 8:53 p.m.