**OpenBUGS script supplied as supplemental material**

Rochette Sebastien, Le Pape Olivier, Vigneau Joel, Rivot Etienne (2013). **A hierarchical Bayesian model for embedding larval drift and habitat models in integrated life cycles for exploited fish.** *Ecological Applications*, 23(7), 1659-1676. Publisher’s official version : http://dx.doi.org/10.1890/12-0336.1 , Open Access version : http://archimer.ifremer.fr/doc/00161/27243/

### BUGS code to estimate parameters of a full life cycle model

- Outputs of an individual-based model for larval drift and survival that provided yearly estimates of the dispersion and mortality of eggs and larvae, from spawning grounds to settlement in several coastal nurseries;
- A habitat suitability model, based on juvenile trawl surveys coupled with a geographic information system, to estimate juvenile densities and surface areas of suitable juvenile habitat in each nursery sector;
- A statistical catch-at-age model for the estimation of the numbers-at-age and the fishing mortality on subadults and adults.

*The following BUGS code refers to a specific scenario of the larvae to juvenile mortality process tested in the associated paper (see paper). This scenario (R3) assumes a density-independent mortality parameter common to all nurseries (a_BH) and a nursery-specific density-dependent mortality parameter (b_BH).*

- Programmer: Sébastien Rochette, August 2012
- OpenBUGS version : 3.2.2