drawBernouilli: Draw newly infected

Description Usage Arguments Value

View source: R/nosoi_utilityFunctions.R

Description

For each encounter, simulate whether a new individual is infected.

Usage

1

Arguments

p

vector of size K, giving the probability that each encounter leads to an infection.

Value

Boolean vector giving the newly infected individuals.


nosoi documentation built on Aug. 17, 2021, 5:09 p.m.