convert_age_to_cir
computes the cumulative incidence
rate from a person's age.
convert_age_to_cir(age, pop_prev = 0.1, mid_point = 60, slope = 1/8)
A non-negative number representing the individual's age.
A positive number representing the overall population prevalence. Must be at most 1. Defaults to 0.1.
A positive number representing the mid point logistic function. Defaults to 60.
A number holding the rate of increase. Defaults to 1/8.
If age and mid_point are positive numbers, if pop_prev
is a positive number between 0 and 1 and if slope is a valid number,
then convert_age_to_cir
returns a number, which is equal to
the cumulative incidence rate.
Given a person's age, convert_age_to_cir
can be used
to compute the cumulative incidence rate (cir), which is given
by the formula
$$pop\_ prev / (1 + exp((mid\_ point - age) * slope))$$