spreadP2: spreadP2

Description Usage Arguments Details Value Author(s)

View source: R/sirgraph.R

Description

simple two-probability model

Usage

1
spreadP2(pSI = 0.8, pIR = 0.2, stepsize = 1)

Arguments

pSI

infection probability

pIR

recovery probability

stepsize

size of time step

Details

creates a spreader function with an infection probability and a recovery probability

Value

a spreader function that uses the probabilities on each edge to proceed with the infection process.

Author(s)

Barry S Rowlingson


barryrowlingson/sirgraph documentation built on April 8, 2020, 7:19 p.m.