All statistical and computational methodology described here has been implemented in a freely available R package called amei (Adaptive Management of Epidemiological Interventions), which can be downloaded at http://cran.r-project.org/web/packages/ amei/index.html [11] .