Calculates incidence by year of the registry data, along with mean incidence
with confidence intervals. A smoothed cumulative incidence function is fit to
the data for inspecting deviations in the registry data from a homogeneous
Poisson process.
# NOT RUN {data(prevsim)
# }# NOT RUN {incidence(prevsim$entrydate, 1e6)
incidence(prevsim$entrydate, 1e6, start = "2004-01-30", num_reg_years = 9)
# }# NOT RUN {# }