Supplement 1. Data and the R and WinBUGS code used in the paper.
datasetposted on 09.08.2016, 09:13 by Matthew C. Fitzpatrick, Evan L. Preisser, Adam Porter, Joseph Elkinton, Lance A. Waller, Bradley P. Carlin, Aaron M. Ellison
"code_and_data.zip" : An archive containing all data and code described below (5 files).
"hwa_wombling.zip" : A shapefile of the county-level spread data and covariates used in the paper.
"womblingRcode.R" : This file contains R code to perform the following analyses:
"womblingFuncs.R" : R code containing helper functions for plotting, etc called by code in womblingRcode.R.
- 1. Prepare geospatial data and covariates (contained in hwa_wombling.zip) for use in WinBUGS
- 2. Call WinBUGS code (using R2WinBUGS package) for the areal and local-edge wombling models.
- 3. Read output from WinBUGS and calcualte boundary probabilities.
- 4. Make maps of output that highlight boundary probabilities.
"areal_wombling.bug" : This file contains WinBUGS code to fit a Bayesian areal wombling model.
"local_edge_wombling.bug" : This file contains WinBUGS code to fit a Bayesian local edge wombling model.