Learn R Programming

rprev (version 0.2.3)

mean_incidence_rate: Mean disease incidence.

Description

Calculates the average incidence rate per one hundred thousand with confidence intervals for the given registry data.

Usage

mean_incidence_rate(raw_inc, population_size, precision = 2, level = 0.95)

Arguments

raw_inc
Vector of incidence values by year, as returned by yearly_incidence.
population_size
Integer corresponding to the size of the population at risk.
precision
The number of decimal places required.
level
The desired confidence interval width.

Value

A list with the following values:

See Also

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

Examples

Run this code
data(prevsim)

rawinc <- yearly_incidence(prevsim$entrydate)
mean_incidence_rate(rawinc, population_size=3.5e6)

rawinc2 <- yearly_incidence(prevsim$entrydate, start_date="2005-05-01", num_years=5)
mean_incidence_rate(rawinc2, population_size=3.5e6)

Run the code above in your browser using DataLab