10.6084/m9.figshare.3550233.v1 Matthew C. Fitzpatrick Matthew C. Fitzpatrick Evan L. Preisser Evan L. Preisser Adam Porter Adam Porter Joseph Elkinton Joseph Elkinton Lance A. Waller Lance A. Waller Bradley P. Carlin Bradley P. Carlin Aaron M. Ellison Aaron M. Ellison Supplement 1. Data and the R and WinBUGS code used in the paper. Wiley 2016 edge detection ecotones Adelges tsugae spatial statistics boundary analysis invasive species hemlock woolly adelgid Environmental Science Ecology 2016-08-09 09:13:32 Dataset https://wiley.figshare.com/articles/dataset/Supplement_1_Data_and_the_R_and_WinBUGS_code_used_in_the_paper_/3550233 <h2>File List</h2><blockquote> <a href="code_and_data.zip">code_and_data.zip</a><br><br> <a href="hwa_wombling.zip">hwa_wombling.zip</a><br><br> <a href="womblingRcode.R">womblingRcode.R</a><br><br> <a href="womblingFuncs.R">womblingFuncs.R</a><br><br> <a href="areal_wombling.bug">areal_wombling.bug</a><br><br> <a href="local_edge_wombling.bug">local_edge_wombling.bug</a> </blockquote><h2>Description</h2><blockquote> "code_and_data.zip" : An archive containing all data and code described below (5 files).<br> <br> "hwa_wombling.zip" : A shapefile of the county-level spread data and covariates used in the paper.<br> <br> "womblingRcode.R" : This file contains R code to perform the following analyses:<br> <ul> <li>1. Prepare geospatial data and covariates (contained in hwa_wombling.zip) for use in WinBUGS</li> <li>2. Call WinBUGS code (using R2WinBUGS package) for the areal and local-edge wombling models.</li> <li>3. Read output from WinBUGS and calcualte boundary probabilities.</li> <li>4. Make maps of output that highlight boundary probabilities.</li> </ul> "womblingFuncs.R" : R code containing helper functions for plotting, etc called by code in womblingRcode.R.<br> <br> "areal_wombling.bug" : This file contains WinBUGS code to fit a Bayesian areal wombling model.<br> <br> "local_edge_wombling.bug" : This file contains WinBUGS code to fit a Bayesian local edge wombling model. <br> </blockquote>