drawBernouilli: Draw newly infected

View source: R/nosoi_utilityFunctions.R

drawBernouilliR Documentation

Draw newly infected

Description

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

Usage

drawBernouilli(p)

Arguments

p

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

Value

Boolean vector giving the newly infected individuals.


slequime/nosoi documentation built on Feb. 15, 2024, 3:31 p.m.