Skip to main content
squidSim: a flexible R package for structured and reproducible simulations in Ecology and Evolutionary Biology

squidSim: a flexible R package for structured and reproducible simulations in Ecology and Evolutionary Biology

This is a Preprint and has not been peer reviewed. This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Authors

Joel L Pick , Hassen Allegue , Yimen Gerardo Araya Ajoy, Barbara Class , Ned A Dochtermann , Ed R. Ivimey-Cook, Kate Laskowski, Denis Réale, Jonathan Wright, Niels J Dingemanse, David F Westneat

Abstract

1. Complex statistical methodology now allows a growing array of questions to be addressed in ecology and evolutionary biology. However, the particular question being addressed or the complex nature of the data collected often raise issues with how statistical models perform and potentially limit inference. Simulations provide a powerful approach to help empiricists understand the assumptions, limitations, and output of generalised linear mixed models (GLMMs), advance teaching of statistical modelling and design more informed studies around their usage.
2. Datasets in ecology and evolutionary biology often have complex hierarchical structures, which create challenges in creating simulations. This problem is exacerbated by the current lack of flexible and reproducible tools that facilitate simulating complex data from a wide range of data structures.
3. Here we present the squidSim R package, a flexible and logical program designed to accommodate many of the common data structures in ecology and evolutionary biology. The program can simulate from a wide diversity of models in a generalised linear mixed model (GLMM) framework, including data from Gaussian and non-Gaussian models, multi-response models, as well as spatial, temporal, genetic and phylogenetic effects.
4. In addition to facilitating simulations for a wide range of models and data structures, squidSim R package provides a fully reproducible workflow and has established utility for teaching. We also provide a graphical user interface via the shinySim R package.

DOI

https://doi.org/10.32942/X20M0T

Subjects

Ecology and Evolutionary Biology, Statistical Methodology

Keywords

reproducibility, multivariate, autocorrelation, phylogeny, pedigree, genetic variation, random effects, Hierarchical Models, linear models, Simulation

Dates

Published: 2025-09-10 10:51

Last Updated: 2025-09-10 10:51

License

CC BY Attribution 4.0 International

Additional Metadata

Conflict of interest statement:
The authors declare no conflict of interest.

Data and Code Availability Statement:
All code for the simulated examples are deposited in \url{https://github.com/squidgroup/squidSim_manuscript}

Language:
English