Learn R Programming

serofoi (version 1.0.3)

probability_exact_time_varying: Computes the probability of being seropositive when Forces-of-Infection (FoIs) vary by time

Description

Computes the probability of being seropositive when Forces-of-Infection (FoIs) vary by time

Usage

probability_exact_time_varying(years, fois, seroreversion_rate = 0)

Value

vector of probabilities of being seropositive for age-varying FoI including seroreversion (ordered from youngest to oldest individuals)

Arguments

years

Integer indicating the years covering the birth ages of the sample

fois

Numeric atomic vector corresponding to the age-varying FoI to simulate from

seroreversion_rate

Non-negative seroreversion rate. Default is 0.