Learn R Programming

rprev (version 0.2.3)

test_incidence_fit: Test homogeneous Poisson assumption of disease incidence.

Description

This function compares the actual variance of the yearly incidence rates with rates simulated from a Poisson process with overall rate equal to the overall mean rate.

Usage

test_incidence_fit(inc, N_sim = 1e+05)

Arguments

inc
Vector of absolute incidence values for each included year of the registry as generated by yearly_incidence.
N_sim
Number of simulations to perform.

Value

Vector of p-values for over- and under-dispersion based on the position of the observed sequence variance in the distribution.

See Also

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

Examples

Run this code
data(prevsim)

inc <- yearly_incidence(prevsim$entrydate)

test_incidence_fit(inc)

Run the code above in your browser using DataLab