View source: R/simulate_serosurvey.R
prob_seroprev_age_by_age | R Documentation |
This function calculates the probabilities of seropositivity by age based on an age-varying FoI model. It takes into account the FoI and the rate of seroreversion.
prob_seroprev_age_by_age(foi, seroreversion_rate)
foi |
A dataframe containing the FoI values for different ages. It should have two columns: 'age' and 'foi'. |
seroreversion_rate |
A non-negative numeric value representing the rate of seroreversion. |
A dataframe with columns 'age' and 'seropositivity'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.