View source: R/calculate_prior_infections.R
calculate_prior_infections | R Documentation |
Calculates the a priori probability of how many people are infected in one event.
calculate_prior_infections( negative_persons, infected_persons, event, p_one = NULL, infect_average = NULL )
negative_persons |
Number of people without the infectious persons. |
infected_persons |
Number of infected people. |
event |
Characters, event type given as characters, currently: "school" or "day_care_center". |
p_one |
Number, this is a placeholder |
infect_average |
Number, this is a placeholder |
The probability is beta-binomial distributed. The values for p1 and infection_average for the events "school" and "day_care_center" are from Schoeps et al. (2021).
The a priori probability y.
Schoeps A et al. (2021) "Surveillance of SARS-CoV-2 transmission in educational institutions, August to December 2020, Germany". Epidemiology and Infection 149, E213: 1-9.
calculate_prior_infections(negative_persons = 23, infected_persons = 2, event = "school")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.