An R package for the analysis of epidemiological data