Skip to main content
Dryad logo

SSP: An R package to estimate sampling effort in studies of ecological communities


Guerra-Castro, Edlin et al. (2022), SSP: An R package to estimate sampling effort in studies of ecological communities, Dryad, Dataset,


SSP (simulation-based sampling protocol) is an R package that uses simulations of ecological data and dissimilarity-based multivariate standard error (MultSE) as an estimator of precision to evaluate the adequacy of different sampling efforts for studies that will test hypothesis using permutational multivariate analysis of variance. The procedure consists in simulating several extensive data matrixes that mimic some of the relevant ecological features of the community of interest using a pilot data set. For each simulated data, several sampling efforts are repeatedly executed and MultSE calculated. The mean value, 0.025 and 0.975 quantiles of MultSE for each sampling effort across all simulated data are then estimated and standardized regarding the lowest sampling effort. The optimal sampling effort is identified as that in which the increase in sampling effort does not improve the highest MultSE beyond a threshold value (e.g. 2.5 %). The performance of SSP was validated using real data. In all three cases, the simulated data mimicked the real data and allowed to evaluate the relationship MultSE – n beyond the sampling size of the pilot studies. SSP can be used to estimate sample size in a wide variety of situations, ranging from simple (e.g. single site) to more complex (e.g. several sites for different habitats) experimental designs. The latter constitutes an important advantage in the context of multi-scale studies in ecology. An online version of SSP is available for users without an R background.


The data for testing SSP were obtained from the following studies:

1. Ortigosa, D., Suárez-Mozo, N.Y., Barrera, N.C., and Simões, N. (2018). First survey of Interstitial molluscs from Cayo Nuevo, Campeche Bank, Gulf of Mexico. ZooKeys 779. doi: 10.3897/zookeys.779.24562.

2. Ugalde, D., Gómez, P., and Simoes, N. (2015). Marine sponges (Porifera: Demospongiae) from the Gulf of México, new records and redescription of Erylus trisphaerus (de Laubenfels, 1953). Zootaxa 3911(2), 151-183. doi: 10.11646/zootaxa.3911.2.1.

3. Guerra-Castro, E., Cruz-Motta, J.J., and Conde, J.E. (2011). Cuantificación de la diversidad de especies incrustantes asociadas a las raíces de Rhizophora mangle L. en el Parque Nacional Laguna de La Restinga. Interciencia 36(12), 923-930.

Usage Notes

To use the data mentioned above, please cite the respective bibliographic reference


Dirección General de Asuntos del Personal Académico, Universidad Nacional Autónoma de México, Award: PE207416

Consejo Nacional de Ciencia y Tecnología, México, Award: catedras-325