risktobeinfectedbydistancetooneinfectedunit: Risk to be infected by a neighbour at a distance x

Description Usage Arguments Value Examples

View source: R/Generate_data.R

Description

Risk to be infected by a neighbour at a distance x

Usage

1
risktobeinfectedbydistancetooneinfectedunit(.dist, .distriskhalf = 5 * 10^(-4))

Arguments

.dist

: a distance

.disthalfrisk

: distance for which the risk is one half

Value

exp(-.dist/(log(2)*.distriskhalf))

Examples

1
2
#Risk to be ingfected 2 m from the victim when the 50%risk distance is 1 m:
risktobeinfectedbydistancetooneinfectedunit(2,1)

DanielBonnery/Strategy documentation built on Dec. 17, 2021, 4:03 p.m.