R code. Function to create a smoother line using generalised additive models. from Winter feeding of elk in the Greater Yellowstone Ecosystem and its effects on disease dynamics

This file is called in to other code files and is necessary for the generation of smoothed brucellosis prevalence estimates, including in years for which there is no data.