Learn R Programming

Phylogenetic structural equation models

Package phylosem combines features from structural equation models (SEM), phylogenetic comparative methods (PCM), and generalized linear mixed models (GLMM). By doing so, it incorporates a broad feature-set:

  • Comparing multiple evolutionary models similar to phylopath
  • Estimating trade-offs among multiple traits similar to phylolm
  • Predicting missing trait values (and associated standard errors) similar to Rphylopars
  • Estimating tradeoffs including recursive (cyclic) dependencies similar to package sem
  • Applying ordination to multiple traits, similar to phylogenetic factor analysis in package FishLife

phylosem is specifically intended as a minimal implementation, and uses standard packages for input/output formatting:

  • Input: phylogenetic relatedness defined using class phylo in package ape
  • Input: structural trade-offs specified using syntax defined by package sem
  • Output: visualizing trade-offs using semPlot, diagrammeR, and ggraph
  • Output: assembling trait predictions and standard errors using phylobase
  • Output: plotting trait predictions using phylosignal

Please see package vignettes for more details regarding syntax and features.

Copy Link

Version

Install

install.packages('phylosem')

Monthly Downloads

193

Version

1.1.4

License

GPL-3

Maintainer

James Thorson

Last Published

April 2nd, 2024

Functions in phylosem (1.1.4)

best.compare_phylosem

Extract best fitted model
as_fitted_DAG

Convert phylosem to phylopath output
as_phylo4d

Convert phylosem to phylo4d
average

Choose model
average.compare_phylosem

Choose model
as_sem

Convert phylosem to sem output
Mlifehist_ver1_0

Fisheries natural mortality example
choice.compare_phylosem

Choose model
best

Extract best fitted model
choice

Choose model
phylosem_control

Detailed control for phylosem structure
vcov.phylosem

Extract Variance-Covariance Matrix
summary.phylosem

summarize phylosem
print.phylosem

Print parameter estimates and standard errors.
coef.phylosem

Extract path coefficients
compare_phylosem

Compare phylogenetic structural equation models
list_parameters

List fixed and random effects
parse_path

Parse path
phylosem

Fit phylogenetic structural equation model