infection_length: Assigns the infection length of new cases

Description Usage Arguments Value

View source: R/covid_status_functions.R

Description

Each new case is assigned a number of days an individual is both presymptomatic and symptomatic for.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
infection_length(
  df,
  exposed_dist = "weibull",
  exposed_mean = 3.2,
  exposed_sd = 1,
  presymp_dist = "weibull",
  presymp_mean = 3.2,
  presymp_sd = 1,
  infection_dist = "normal",
  infection_mean = 14,
  infection_sd = 2,
  seed = NULL
)

Arguments

df

Input list of the function - output of an ____assign function

exposed_dist

The distribution of the length of the exposed stage - options: weibull, lognormal, normal

exposed_mean

The mean length of the exposed stage

exposed_sd

The standard deviation of the length of the exposed stage

presymp_dist

The distribution of the length of the presymptomatic stage - options: weibull, lognormal, normal

presymp_mean

The mean length of the presymptomatic stage

presymp_sd

The standard deviation of the length of the presymptomatic stage

infection_dist

The distribution of the length of the symptomatic stage

infection_mean

The mean length of the symptomatic stage

infection_sd

The standard deviation of the length of the symptomatic stage

seed

Seed for model run

Value

An updated version of the input list with the new cases having infection lengths assigned


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