The spatial distribution of foraging animals at a given time simultaneously depends on (1) exogenous environmental variables such as resource availability and abiotic habitat characteristics, and (2) the endogenous variable social aggregation made up of the opposing mechanisms of conspecific attraction and repulsion. We developed an exogenous environment-social aggregation model to analyse the spatial distributions of six abundant shorebird species in the Dutch Wadden Sea at resolutions of 150 x 150, 200 x 200 and 250 x 250 m. We used these resolutions to check the robustness of the estimates to the modifiable areal unit problem. We estimated the model parameters by spatial autoregression. This approach enables, among others, estimation of ...