case_assign: Assigns COVID cases based on individual probabilities

Description Usage Arguments Value

View source: R/covid_status_functions.R

Description

Susceptible individuals are assigned COVID through a Bernoulli draw (rbinom) based on their probability of becoming a COVID case.

Usage

1
case_assign(df, tmp.dir = getwd(), save_output = TRUE, seed = NULL)

Arguments

df

Input list of the model - output of covid_prob function

tmp.dir

Directory for saving a csv recording the number of new cases each day

save_output

Logical. Should the number of new cases be saved as output.

seed

Seed for model run

Value

An updated version of the input list with the new cases assigned


Urban-Analytics/rampuaR documentation built on Nov. 27, 2020, 4:34 a.m.