draw_trace_app_user_status: Determine whether a case is using a contact tracing app

Description Usage Arguments Value

View source: R/draw_distributions.R

Description

Draws a uniform random number and compares to app usage probability to determine whether a case is an app user. For a case to be traced via the app, the secondary case and the primary/index case must both be app users.

Usage

1

Arguments

n

Number of cases to consider

sim_params

sim_params object (a list) containing simulation parameters, here, the sim_params$p_trace_app value is used as the probability of contact tracing app usage.

Value

A boolean vector of length n for each case's app usage status


bcgov/epi.branch.sim documentation built on Dec. 16, 2020, 5:49 a.m.