Source code for SpatialEpi R package