Learn R Programming

rprev (version 0.2.3)

raw_incidence: DEPRECATED: Please use yearly_incidence instead.

Description

Disease incidence.

Usage

raw_incidence(entry, start = NULL, num_reg_years = NULL)

Arguments

entry
Vector of diagnosis dates for each patient in the registry in the format YYYY-MM-DD.
start
Date from which incident cases are included in the format YYYY-MM-DD. Defaults to the earliest entry date.
num_reg_years
The number of years of the registry for which incidence is to be calculated. Defaults to using all available complete years.

Value

Vector of length num_reg_years of integers, representing the number of absolute incidence values for each included year of the registry.

Details

Calculates yearly incidence for the available registry data.

See Also

yearly_incidence

Other incidence functions: incidence_age_distribution, incidence, mean_incidence_rate, plot.incidence, test_incidence_fit, yearly_incidence

Examples

Run this code
data(prevsim)

Run the code above in your browser using DataLab