Incidences calculations.

Share:

Description

A function to calculate incidence rates for every combination of age and calendar years.

Usage

1
2
incidences(age_min, age_max, year_min, year_max, follow_up,
start_age, start_year, case)

Arguments

age_min

The age at which incidences should begin to be calculated.

age_max

The age at which incidences should stop to be calculated.

year_min

The calendar year at which indicidences should begin to be calculated.

year_max

The calendar year at which incidences should stop to be calculated.

follow_up

A vector of dimension n of follow-up times as non-participants.

start_age

A vector of dimension n of ages at the begining of the follow-up.

start_year

A vector of dimension n of calendar years at the begining of the follow-up.

case

A vector of dimension n where each component equals 1 if the follow-up ended because the individual was infected with the decease and 0 otherwise.

Details

This function can be used to obtain incidences for the functions est.expDeath, var.expDeath and inference.SMR. A complete example of usage is provided in the help page of the screening dataset.

Value

A matrix whose first column is the number of person-years at risk, the second column is the calendar years, the third column is the ages and the fourth column is the incidence rates.

Author(s)

Denis Talbot, Thierry Duchesne, Jacques Brisson, Nathalie Vandal.

See Also

est.expDeath, var.expDeath, inference.SMR, screening