Octave code to solve for the evolutionarily singular settling time strategy for a nesting bird (e.g. ovenbird) to avoid a nest predator (e.g. chipmunks)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
wnhgsolver
.gitignore
README.md
appendix.pdf
calcN1.m
calcNeqm.m
calcPkyz.m
calcanalyticdU.m
calcddU.m
calce.m
calcnumericdU.m
calcphi.m
calcu.m
oddsratio.m
params.m
probrank.m
solveEss.m
wnhg8.oct

README.md

Reference

Schmidt K.A., Johansson J., Kristensen N.P., Massol F., and Jonzen, N. (2014) Consequences of information use in breeding habitat selection on the evolution of settlement time. Oikos In press.

See also appendix.pdf included above.

Quick Start

If you have git:

$ git clone https://github.com/nadiahpk/settlement-time-game
$ cd settlement-time-game

If you don't have git, just download and unpack the latest zip file:

https://github.com/nadiahpk/settlement-time-game/archive/master.zip

In Octave

> params;
> [y,fval]=solveEss(.9,p)

Should give the result

y =  0.82902

The Wallenius solver

In the subdirectory wnhgsolver is C++ code for the Wallenius distribution (from Agner Fog) and the file wnhg8.cpp to generate wnhg8.oct. You can create your own by running

$ mkoctfile wnhg8.cpp