View source: R/get_expected_total_infections.R

get_expected_total_infections | R Documentation |

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

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

`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. |

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.

The total number of expected symptomatic infections.

get_expected_total_infections(25, 5, 4)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.