prob_seroprev_age_time_by_age {serofoi} | R Documentation |
Generate probabilities of seropositivity by age based on an age-and-time varying Force-of-Infection (FoI) model.
Description
This function calculates the probabilities of seropositivity by age based on an age-and-time-varying FoI model. It takes into account the FoI and the rate of seroreversion.
Usage
prob_seroprev_age_time_by_age(foi, seroreversion_rate)
Arguments
foi |
A dataframe containing the FoI values for different ages. It should have three columns: 'year', 'age' and 'foi'. |
seroreversion_rate |
A non-negative numeric value representing the rate of seroreversion. |
Value
A dataframe with columns 'age' and 'seropositivity'.
[Package serofoi version 1.0.3 Index]