get_expected_total_infections: Expected number of total symptomatic infections

View source: R/get_expected_total_infections.R

get_expected_total_infectionsR Documentation

Expected number of total symptomatic infections

Description

Calculates the expected total number of symptomatic infections after a group event, based on the observed infections so far.

Usage

get_expected_total_infections(
  group_size,
  last_day_reported_infection,
  total_reported_infections,
  meanlog = 1.69,
  sdlog = 0.55
)

Arguments

group_size

integer, size of the group.

last_day_reported_infection

Number of days the last infection was reported after the event (0 = event day).

total_reported_infections

Number of reported symptomatic infections so far.

meanlog

Number, the parameter of mean from the log-normal distribution.

sdlog

Number, the parameter of sd from the log-normal distribution.

Details

meanlog and sdlog are the log-normal distribution parameters derived from the incubation period characteristics described in Xin et al. (2021). Note that the function often clearly overestimates the number of symptomatic infections if last_day_reported_infections is less than 3.

Value

The total number of expected symptomatic infections.

Examples

get_expected_total_infections(25, 5, 4)


smidm documentation built on Aug. 27, 2022, 9:06 a.m.