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.