We analyze variations in alpha-diversity of benthic macroinvertebrate communities in an Italian lagoon system using Bayesian hierarchical models with nested random effects. Our aim is to understand how spatial scales influence microhabitat definition. Tsallis entropy measures diversity and spike-and-slab regression selects predictors. (C) 2018 Elsevier B.V. All rights reserved.