## Supplement 1. R code for computing least-cost path distance and likelihood analysis of the spatial capture–recapture (SCR) model, for computing the marginal likelihood and obtaining the MLEs, and for simulation study, and a narrative walk-through in PDF format.

2016-08-09T14:10:35Z (GMT) by
<h2>File List</h2><div> <p> <a href="EDmanuscript-supplements.pdf">EDmanuscript-supplements.pdf</a> (md5: 44eb27bf3d2ab768941365c6a9dc1d43) – R code in pdf form and extra explanation for supplement 1<br> <a href="leastcostpath.R">leastcostpath.R</a> (md5: f8d1a9c67e4ee10ed633937d82b68f3f) - R code for computing least-cost path distance and likelihood analysis of the SCR model<br> <a href="MLE.R">MLE.R</a> (md5: 4a4f93a6aa444cb52f458e0dbdc80db5)- R code for computing the marginal likelihood and obtaining the MLEs<br> <a href="simstudy.R">simstudy.R</a> (md5: 1b05540b8556e498242191382ba37c1b) - R code for simulation study </p> </div><h2>Description</h2><div> <p>The supplement demonstrates the computation of least-cost path and its use in obtaining maximum likelihood estimates of model parameters. The file Leastcostpath.R is an R script which can be executed directly (narrative walk-through is provided by the PDF file EDmanuscript-supplements.pdf). The likelihood function (in the form of an R function) is provided in the R script MLE.R. Finally, the various pieces are put together to carry-out a simulation study in the R script simstudy.R. </p> </div>