Supplement 1. Data and the R and WinBUGS code used in the paper.

File List

code_and_data.zip

hwa_wombling.zip

womblingRcode.R

womblingFuncs.R

areal_wombling.bug

local_edge_wombling.bug

Description

"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:
  • 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.
"womblingFuncs.R" : R code containing helper functions for plotting, etc called by code in womblingRcode.R.

"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.