The code adjust the Campylobacter data, to remove the incubation period and reporting delay.
### _Key Features:_
The distributions of the incubation period were assumed to be log-normal [@Sartwell1995] with location parameter, $\mu$, and the scale parameter, $\sigma$ inferred by the mean, $m$, and standard deviation, $s$, of the observed data of Horn and Lake [@Horn2013] for the incubation period.
Delay in reporting was assumed to follow a uniform distribution between 1-4 days, based on informed opinion of one of the authors (G. Nichols).
The code associates the value of selected environmental variables to the Campylobacter cases at the location of the diagnostic laboratory postcode and date of occurrence with a chosen time-time_lag. It also associate the corresponding yearly population in the catchment areas corresponding to the diagnostic laboratory postcode.
### _Key Features:_
The time lag is an input (line 180, e.g. time_lag<-7 will take 7 days time-lag) and calculate the enviromental variables averaged (expect for cululative rainfall which calculate the cumulative sum of rain) over the past time-lag days.
The code also extract iformation about the latitude and longitude of the laboratory location.
It also estimmate the day-length based on latitude from laboratory location and time of the year.