Juan Manuel Morales, Daniel T. Haydon, Jacqui Frair, Kent E. Holsinger, and John M. Fryxell . 2004. Extracting more out of relocation data: building movement models as mixtures of  random walks. Ecology 85:2436–2445.


Supplement

WinBUGS code for analysis of movement paths.
Ecological Archives
E085-072-S1
.

Copyright


Authors
File list (downloads)
Description


Author(s)

Juan Manuel Morales
Ecology & Evolutionary Biology
University of Connecticut
75 North Eagleville Road
Storrs, CT 06269 U-3043
juan.morales@uconn.edu

Daniel T. Haydon
Department of Zoology
University of Guelph
Guelph, Ontario, Canada N1G 2W1

Jacqui Frair
Department of Biological Sciences
University of Alberta
Edmonton, Alberta, Canada T6G 2E9

Kent E. Holsinger
Department of Ecology & Evolutionary Biology
University of Connecticut, U-3043
Storrs, CT 06269-3043

John M. Fryxell
Department of Zoology
Rm 268, Axelrod Building
University of Guelph
Guelph, Ontario, Canada N1G 2W1


File list

singlet.txt   WinBUGS code for model "Single", a single Random Walk. Size 2 KB
double.txt   WinBUGS code for model "Double", two Random Walks. Size 2 KB
double_covar.txt   WinBUGS code for model "Double with Covariates". Size 3 KB
double_switch.txt   WinBUGS code for model "Double Switch". Size 3 KB
switch_covar.txt   WinBUGS code for model "Switch with Covariates". Size 3 KB
switch_constrained.txt   WinBUGS code for model "Switch Constrained". Size 3 KB
triple_switch.txt   WinBUGS code for model "Triple Switch". Size 2 KB
HierSwitch.txt   WinBUGS code for hierarchical version of Switch model. Size 3 KB
simulasw.m   Matlab code for movement simulation. Size 5 KB
PPcheck.m   Matlab code for posterior predictive check. Size 7 KB
elk_data.txt   Movement data for four elk. Size 87 KB
simulated.txt   Movement data simulated with simulasw.m. Size 46 KB
     
allfiles.zip   All files together. Size 58 KB

Description

WinBUGS code was run on version 1.4 available at http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/contents.shtml. We use the following generic script:

display('log')
check('directory/model_name.txt')
data('directory/data_file.txt')
compile(4)
inits(1, 'directory/filename1_ini.txt')
inits(2, 'switch/filename2_ini.txt')
inits(3, 'switch/filename3_ini.txt')
inits(4, 'switch/filename4_ini.txt')
gen.inits()
set(parameter_names)
over.relax('yes')
update(50000)
stats(*)
quantiles(*)
coda(*,switch/output)


See the WinBUGS manual for details on how to run the analysis. Matlab code was run on student version 6.5.


ESA Publications | Ecological Archives | Permissions | Citation | Contacts