Learn R Programming

rprev (version 0.2.4)

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:

absolute

Overall incidence for the period of interest as a single double

per100K

Incidence for the period of interest per one hundred thousand

per100K.lower

Lower bounds of the specified confidence level on the per one hundred thousand estimate

per100K.upper

Upper bounds of the specified confidence level on the per one hundred thousand estimate

See Also

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

Examples

Run this code
# NOT RUN {
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