piecewiseSEM: Piecewise structural equation modelling in r for ecology, evolution, and systematics
Open accessThe DOI matches its Crossref record; 25 of the 25 references it cites were found in a registry or an index.
Abstract
Summary: Ecologists and evolutionary biologists rely on an increasingly sophisticated set of statistical tools to describe complex natural systems. One such tool that has gained significant traction in the biological sciences is structural equation models (SEM), a form of path analysis that resolves complex multivariate relationships among a suite of interrelated variables. Evaluation of SEM s has historically relied on covariances among variables, rather than the values of the data points themselves. While this approach permits a wide variety of model forms, it limits the incorporation of detailed specifications. Recent developments have allowed for the simultaneous implementation of non‐normal distributions, random effects and different correlation structures using local estimation, but this process is not yet automated and consequently, evaluation can be prohibitive with complex models. Here, I present a fully documented, open‐source package piecewise SEM, a practical implementation of confirmatory path analysis for the r programming language. The package extends this method to all current (generalized) linear, (phylogenetic) least‐square, and mixed effects models, relying on familiar r syntax. I also provide two worked examples: one involving random effects and temporal autocorrelation, and a second involving phylogenetically independent contrasts. My goal is to provide a user‐friendly and tractable implementation of SEM that also reflects the ecological and methodological processes generating data.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
lavaan : An R Package for Structural Equation Modeling
Rosseel, Y. (2012) · Journal of Statistical Software · doi:10.18637/jss.v048.i02 · Cited by 27,955
APE: analyses of phylogenetics and evolution in R language
Paradis, E., Claude, J., & Strimmer, K. (2004) · Bioinformatics · doi:10.1093/bioinformatics/btg412 · Cited by 11,335
A general and simple method for obtaining R 2 from generalized linear mixed‐effects models
Nakagawa, S., & Schielzeth, H. (2013) · Methods in Ecology and Evolution · doi:10.1111/j.2041-210x.2012.00261.x · Cited by 10,356 · cited 2×
“In general, the models explained a larger proportion of variance on average than the traditional SEM, based on R 2 values derived from the variance of both fixed and random effects (Nakagawa & Schielzeth 2012) obtained using sem.model.fits .”
Methodnlme : Linear and nonlinear mixed effects models
DebRoy, S. (2006) · Medical Entomology and Zoology · Cited by 10,009
Structural Equation Modeling and Natural Systems
Grace, J. B. (2006) · doi:10.1017/cbo9780511617799 · Cited by 2,432
lmerTest: Tests in Linear Mixed Effects Models
Kuznetsova, A., Bruun Brockhoff, P., & Haubo Bojesen Christensen, R. (2013) · CRAN: Contributed Packages · doi:10.32614/cran.package.lmertest · Cited by 1,234
Confirmatory path analysis in a generalized multilevel context
Shipley, B. (2009) · Ecology · doi:10.1890/08-1034.1 · Cited by 1,083
Extension of Nakagawa & Schielzeth's R2GLMM to random slopes models
Johnson, P. C. D. (2014) · Methods in Ecology and Evolution · doi:10.1111/2041-210x.12225 · Cited by 948
Jing, X., Sanders, N. J., Shi, Y., Chu, H., Classen, A. T., Zhao, K., Chen, L., Shi, Y., Jiang, Y., & He, J.-S. (2015) · Nature Communications · doi:10.1038/ncomms9159 · Cited by 895 · cited 2×
“…drivers of ecosystem functioning in eelgrass beds (Duffy et al. 2015), disentangle the influence of functional diversity across trophic levels in experimental estuarine mesocosms (Lefcheck & Duffy 2015), and quantify the biotic and abiotic drivers of grassland multifunctionality (Jing et al. 2015).”
BackgroundCause and Correlation in Biology
Shipley, B. (2000) · Cambridge University Press eBooks · doi:10.1017/9781009560368 · Cited by 864
Shipley, B. (2016) · Cambridge University Press eBooks · doi:10.1017/cbo9781139979573 · Cited by 749
Eight Myths About Causality and Structural Equation Models
Bollen, K. A., & Pearl, J. (2013) · Handbooks of Sociology and Social Research · doi:10.1007/978-94-007-6094-3_15 · Cited by 645
The AIC model selection method applied to path analytic models compared using a d‐separation test
Shipley, B. (2013) · Ecology · doi:10.1890/12-0976.1 · Cited by 606 · cited 1×
“Shipley (2013) showed that the Fisher’s C statistic can be used to obtain a value of Akaike’s Information Criterion (AIC) using the following equation: Where C is from Equation (1), and K is the likelihood degrees of freedom (not to be confused with k , the number of independence claims in the…”
MethodGuidelines for a graph‐theoretic implementation of structural equation modeling
Grace, J. B., Schoolmaster, D. R., Guntenspergen, G. R., Little, A. M., Mitchell, B. R., Miller, K. M., & Schweiger, E. W. (2012) · Ecosphere · doi:10.1890/es12-00048.1 · Cited by 602
A New Inferential Test for Path Models Based on Directed Acyclic Graphs
Shipley, B. (2000) · Structural Equation Modeling: A Multidisciplinary Journal · doi:10.1207/s15328007sem0702_4 · Cited by 490
Does species diversity limit productivity in natural grassland communities?
Grace, J. B., Michael Anderson, T., Smith, M. D., Seabloom, E., Andelman, S. J., Meche, G., Weiher, E., Allain, L. K., Jutila, H., Sankaran, M., et al. (2007) · Ecology Letters · doi:10.1111/j.1461-0248.2007.01058.x · Cited by 455 · cited 1×
“By allowing one variable to serve as a response in one path and as a predictor in another, SEM is useful for testing and quantifying indirect or cascading effects that would otherwise go unnoticed in any single model (e.g., Grace et al., 2007).”
MethodThe Causal Foundations of Structural Equation Modeling
Pearl, J. (2012) · doi:10.21236/ada557445 · Cited by 344
Hardenberg, A. V., & Gonzalez-Voyer, A. (2013) · Evolution · doi:10.1111/j.1558-5646.2012.01790.x · Cited by 236 · cited 1×
“Finally, it can incorporate distances obtained from taxonomy or phylogeny to address the potentially confounding effects of shared evolutionary history (von Hardenberg & Gonzalez-Voyer 2013).”
MethodBYRNES, J. E., REED, D. C., CARDINALE, B. J., CAVANAUGH, K. C., HOLBROOK, S. J., & SCHMITT, R. J. (2011) · Global Change Biology · doi:10.1111/j.1365-2486.2011.02409.x · Cited by 234
Duffy, J. E., Reynolds, P. L., Boström, C., Coyer, J. A., Cusson, M., Donadi, S., Douglass, J. G., Eklöf, J. S., Engelen, A. H., Eriksson, B. K., et al. (2015) · Ecology Letters · doi:10.1111/ele.12448 · Cited by 232
Self-citationLefcheck, J. S., & Duffy, J. E. (2015) · Ecology · doi:10.1890/14-1977.1 · Cited by 166
Self-citationStructural equation modeling: building and evaluating causal models
Grace, J. B., Scheiner, S. M., & Schoolmaster, Jr. (2015) · Ecological Statistics · doi:10.1093/acprof:oso/9780199672547.003.0009 · Cited by 153
Kin structure, ecology and the evolution of social organization in shrimp: a comparative analysis
Duffy, J. E., & Macdonald, K. S. (2009) · Proceedings of the Royal Society B Biological Sciences · doi:10.1098/rspb.2009.1483 · Cited by 106
Cardon, M., Loot, G., Grenouillet, G., & Blanchet, S. (2011) · Journal of Animal Ecology · doi:10.1111/j.1365-2656.2011.01804.x · Cited by 81
Testing Recursive Path Models With Correlated Errors Using D-Separation
Shipley, B. (2003) · Structural Equation Modeling A Multidisciplinary Journal · doi:10.1207/s15328007sem1002_3 · Cited by 47
Cited by
(2017) · doi:10.1098/rsif.2017.0213 · Cited by 2,813
A brief introduction to mixed effects modelling and multi-model inference in ecology
Harrison, X. A., Donaldson, L., Correa-Cano, M. E., Evans, J., Fisher, D. N., Goodwin, C. E. D., Robinson, B. S., Hodgson, D. J., & Inger, R. (2018) · PeerJ · doi:10.7717/peerj.4794 · Cited by 2,094
Applications of structural equation modeling (SEM) in ecological studies: an updated review
Fan, Y., Chen, J., Shirkey, G., John, R., Wu, S. R., Park, H., & Shao, C. (2016) · Ecological Processes · doi:10.1186/s13717-016-0063-3 · Cited by 1,466
Greater vulnerability to warming of marine versus terrestrial ectotherms
Pinsky, M. L., Eikeset, A. M., McCauley, D. J., Payne, J. L., & Sunday, J. M. (2019) · Nature · doi:10.1038/s41586-019-1132-4 · Cited by 727
Global negative effects of nitrogen deposition on soil microbes
Zhang, T., Chen, H. Y. H., & Ruan, H. (2018) · The ISME Journal · doi:10.1038/s41396-018-0096-y · Cited by 707
“We implemented SEMs using the ‘piecewiseSEM’ package to account for the random effect of “study” [53].”
Method
Metadata
- Authors
- Lefcheck, J. S.
- Venue
- Methods in Ecology and Evolution
- Publisher
- Wiley
- Published
- 2015-12-30
- Volume
- 7
- Issue
- 5
- Pages
- 573-579
- ISSN
- 2041-210X (ISSN-L)
- OpenAlex
- W2101971030
- Cited by
- 4,845
- References
- 25
- FWCI
- 121.76
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.