Hierarchical modelling of ecological processes: a case study