Skip to contents

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.

Usage

probability_seropositive_age_model_by_age(foi, seroreversion_rate)

Arguments

foi

A dataframe containing the force of infection (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.

Value

A dataframe with columns 'age' and 'seropositivity'.