Data and code from: Estimating minimum sample size for detecting phenotypic imorphism using computational simulations
Data files
Jul 22, 2026 version files 4.96 GB
-
Dadaset_For_Dryad.zip
4.96 GB
-
README.md
8.62 KB
Abstract
Polymorphism, a phenomenon in nature, is the occurrence of different morphs of a trait within the population of a single species. Polymorphism can play a crucial role in species diversification, genetic variation, and adaptation. Detecting polymorphism in a single character helps to understand population dynamics, particularly in species that inhabit diverse environments. However, detecting polymorphism in fossil taxa presents methodological and interpretative challenges due to the fragmentary and incomplete nature of fossil taxa. Dimorphism, defined as the occurrence of different morphs of a trait within the population of a single species, represents the simplest and most common form of polymorphism. In this study, we focus on dimorphism instead of polymorphism, which allows for a more streamlined analysis. We used computational simulation experiments to estimate the minimum sample size required to detect a bimodal distribution in univariate morphological variables. First, we describe the morphological diversity of a measured variable (e.g., body mass or skeletal length) as a probability density function with specific parameter sets. Subsequently, we simulated the diversity of the measured variable with varying sample sizes and conducted resampling procedures to ensure robustness. Four key parameters that characterize the probability distribution are identified as having significant influence on the minimum sample size for dimorphism recognition. According to the simulation experiments, a model was built to estimate the minimum sample size for dimorphism recognition based on these parameters. A dataset from extant avian species was used to test the model. Furthermore, we calculated a reference for the minimal sample size required for assessing phenotypic dimorphism in fossil avian taxa by applying parameters derived from extant avian species.
Dataset DOI: 10.5061/dryad.08kprr5f9
Description of the data and file structure
Data and results from Estimating Minimum Sample Size for Detecting Phenotypic Dimorphism Using Computational Simulations
Files and variables
File: Dadaset_For_Dryad.zip
Description: The simulation data produced by the program and neontological data used in this study
Folder and file List
1. The simulation data produced by the program in this study
- Rows (RepCount):
Rows are labeled from 1 to 500, each representing one replication of the sampling process under the specified conditions. - Columns (Samp size 10, Samp size 20, etc.):
Each column corresponds to a different sample size used during simulation. For example:- Samp size 10 represents sample size was set to 10 in random sampling .
- Samp size 20 corresponds to a sample size of 20.
- And so on for other sample sizes.
- Samp size 20 corresponds to a sample size of 1000.
A. Folder: Results Var_Meandiff -
Data for estimating the effect of the dimorphism index in determining the required minimum sample size for detecting bimodality
File List: M_S_(mean of the small group)M_L(mean of the large group).xlsx
B. Folder: Results Var_SDI_SD -
Data for estimating the effect of the dimorphism index and standard deviation of one group in determining the required minimum sample size for detecting bimodality
File List: SDI_(dimorphism index)SD_S(standard deviation of the small group)SD_L(standard deviation of the large group)Ratio(relative population size ratio).xlsx
C. Folder: Results Var_SDI_BOTHSD -
Data for estimating the effect of the dimorphism index and absolute magnitude of standard deviation within both groups in determining the required minimum sample size for detecting bimodality
File List: DI_(dimorphism index)SD_S(standard deviation of the small group)SD_L(standard deviation of the large group)SD_R(standard deviation ratio of the large group and small group)Skew(skewness of both groups)Ratio(relative population size ratio).xlsx
D. Folder: Results Var_SDI_SDratio -
Data for estimating the effect of the dimorphism index and relative standard deviation ratio in determining the required minimum sample size for detecting bimodality
File List: DI_(dimorphism index)Abs_SD(absolute magnitude of standard deviation within both groups)SD_R(standard deviation ratio of the large group and small group)Skew(skewness of both groups)Ratio(relative population size ratio).xlsx
E. Folder: Results Var_SDI_SKE -
Data for estimating the effect of the dimorphism index and skewness of one group in determining the required minimum sample size for detecting bimodality
File List: DI_(dimorphism index)SD_S(standard deviation of the small group)SD_L(standard deviation of the small group)Ratio(relative population size ratio)Skew(skewness of one group).xlsx
F. Folder: Results Var_SDI_BOTHSKE -
Data for estimating the effect of the dimorphism index and absolute magnitude of skewness within both groups in determining the required minimum sample size for detecting bimodality
File List:
- Type 1: DI_(dimorphism index)SD_S(standard deviation of the small group)SD_L(standard deviation of the small group)Ratio(relative population size ratio)Skew(skewness of one group; skewness of the other one group = 0).xlsx
- Type 2: DI_(dimorphism index)SD_S(standard deviation of the small group)SD_L(standard deviation of the small group)Ratio(relative population size ratio)Skew_S(skewness of the small group)Skew_L(skewness of the large group).xlsx
G. Results Var_SDI_Skewdiff - 2 -
Data for estimating the effect of the dimorphism index and skewness difference between two groups in determining the required minimum sample size for detecting bimodality
File List: DI_(dimorphism index)SD_S(standard deviation of the small group)SD_L(standard deviation of the small group)Ratio(relative population size ratio)Abs_skew(absolute magnitude of skewness within both groups)Skew_diff(skewness difference between two groups).xlsx
H. Folder: Results Var_SDI_POP
Data for estimating the effect of the dimorphism index and skewness difference between two groups in determining the required minimum sample size for detecting bimodality
File List: SDI_(dimorphism index)SD_S(standard deviation of the small group)SD_L(standard deviation of the small group)Ratio(relative population size ratio).xlsx
2. The neontological data used in this study
I. The neontological data used in this study were drived from previous studies, and was uploaded as supplemental files to Zenodo: https://zenodo.org/badge/DOI/10.5281/zenodo.18330326: Folder: Dataset in literature.
3. The data and code used for model construction in this study
J. Folder: Model construction
File List:
- Model ANN Mean_SD_Pop HPC - Code for ANN model construction, including different parameter combinations
- Executive program - Program conducting an exhaustive comparison of various parameter configurations and activation functions to identify the model configuration yielding optimal predictive performance
- Results - Results of program above showing as 25 .rds files, each folder correspond a parameter configuration and an activation function
- Modern avian parameter estimate - Code for visualizing the distributions of key parameters and estimating Mean difference based on the body mass of females and males extant birds using the published dataset
- Analysis of CD.R
- Analysis of CV.R
- Analysis of DI.R
- Analysis of pop ratio.R
- Analysis of sd.R
- Analysis of skewness.R
- Figures illustrating the distribution of parameters among extant bird
- Model pred Prieto Marquez 2007.xlsx - Results of assessing the consistency between the model-predicted results and the empirical results based on the data from Prieto-Marquez et al. 2007; "N" indicates the number of measurements, "Raw_pvalue" indicates the p value of ACR test on raw data of measurements, and "Sample_size_pred" indicates the minimum sample size for detecting phenotypic dimorphism based on the model we constructed in this dataset
- Model pred Goymann 2015.xlsx - Results of assessing the consistency between the model-predicted results and the empirical results based on the data from Goymann et al. 2015; "N" indicates the number of measurements, "Raw_pvalue" indicates the p value of ACR test on raw data of measurements, and "Sample_size_pred" indicates the minimum sample size for detecting phenotypic dimorphism based on the model we constructed in this dataset
- Model pred Darwin finch BeakLength.xlsx - Results of assessing the consistency between the model-predicted results and the empirical results based on the data from Beausoleil et al. 2023; "N" indicates the number of measurements, "Raw_pvalue" indicates the p value of ACR test on raw data of measurements, and "Sample_size_pred" indicates the minimum sample size for detecting phenotypic dimorphism based on the model we constructed in this dataset
- Model validation extant animals.xlsx - Results of assessing the consistency between the model-predicted results and the empirical results; "Species" indicates species name of the dataset, "Year" indicates the year in which the data for that species were collected (for Geospiza fortis, data and measurements from each year were analyzed separately), "Num of specimens" indicates the number of measurements, "p value" indicates the p value of ACR test on raw data of measurements, and "Sample size (predicted)" indicates the minimum sample size for detecting phenotypic dimorphism based on the model we constructed in this dataset
Access information
Other publicly accessible locations of the data:
