Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Jul 25;17(7):e0269438.
doi: 10.1371/journal.pone.0269438. eCollection 2022.

Assessing model adequacy for Bayesian Skyline plots using posterior predictive simulation

Affiliations

Assessing model adequacy for Bayesian Skyline plots using posterior predictive simulation

Emanuel M Fonseca et al. PLoS One. .

Abstract

Bayesian skyline plots (BSPs) are a useful tool for making inferences about demographic history. For example, researchers typically apply BSPs to test hypotheses regarding how climate changes have influenced intraspecific genetic diversity over time. Like any method, BSP has assumptions that may be violated in some empirical systems (e.g., the absence of population genetic structure), and the naïve analysis of data collected from these systems may lead to spurious results. To address these issues, we introduce P2C2M.Skyline, an R package designed to assess model adequacy for BSPs using posterior predictive simulation. P2C2M.Skyline uses a phylogenetic tree and the log file output from Bayesian Skyline analyses to simulate posterior predictive datasets and then compares this null distribution to statistics calculated from the empirical data to check for model violations. P2C2M.Skyline was able to correctly identify model violations when simulated datasets were generated assuming genetic structure, which is a clear violation of BSP model assumptions. Conversely, P2C2M.Skyline showed low rates of false positives when models were simulated under the BSP model. We also evaluate the P2C2M.Skyline performance in empirical systems, where we detected model violations when DNA sequences from multiple populations were lumped together. P2C2M.Skyline represents a user-friendly and computationally efficient resource for researchers aiming to make inferences from BSP.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Workflow of the P2C2M.Skyline pipeline.
Arrows represent the path of the data from step 1 to 6. See P2C2M.Skyline package section on Material and Methods for more information.
Fig 2
Fig 2. Percentage of simulated datasets with a p‐value of <1% and 5% across the five different diversification scenarios.
In each chart, the Y‐axis shows the percentage of replicates where the statistical fit of the Bayesian Skyline model is rejected or not under two sampling schemes (10 and 50 individuals).

Similar articles

Cited by

References

    1. Gelman A. A Bayesian formulation of exploratory data analysis and goodness-of-fit testing. Int Stat Rev. 2003;71(2):369–82.
    1. Gelman A, Shalizi CR. Philosophy and the practice of Bayesian statistics. Br J Math Stat Psychol. 2013;66(1):8–38. doi: 10.1111/j.2044-8317.2011.02037.x - DOI - PMC - PubMed
    1. Carstens BC, Smith ML, Duckett DJ, Fonseca EM, Thomé MTC. Assessing model adequacy leads to more robust phylogeographic inference. Trends Ecol Evol [Internet]. 2022. Jan; Available from: https://linkinghub.elsevier.com/retrieve/pii/S0169534721003426. doi: 10.1016/j.tree.2021.12.007 - DOI - PubMed
    1. Kruschke JK. Posterior predictive checks can and should be Bayesian: Comment on Gelman and Shalizi, “Philosophy and the practice of Bayesian statistics.” Br J Math Stat Psychol. 2013;66(1):45–56. doi: 10.1111/j.2044-8317.2012.02063.x - DOI - PubMed
    1. Huelsenbeck JP, Ronquist F, Nielsen R, Bollback JP. Bayesian inference of phylogeny and its impact on evolutionary biology. Science (80-). 2001;294(5550):2310–4. doi: 10.1126/science.1065889 - DOI - PubMed

Publication types