Learn R Programming

⚠️There's a newer version (1.2.1) of this package.Take me there.

mvMORPH

mvMORPH: an R package for fitting multivariate evolutionary models to morphometric data

This package allows the fitting of multivariate evolutionary models (Ornstein-Uhlenbeck, Brownian motion, Early burst, Shift models) on species trees and time series. It also provides functions to compute log-likelihood of users specified models with fast methods (e.g., for Bayesian approaches or customized comparative methods), simulates correlated traits under various models, constrain various parts of multivariate models...

The package implement now efficient methods for high-dimensional multivariate comparative methods (mvgls) based on Penalized likelihood as well as associated tests (Wilks, Pillai...)

The package is designed to handle ultrametric and non-ultrametric trees (i.e. with fossil species) and missing data in multivariate datasets (NA values), SIMMAP mapping of discrete traits, measurement error, etc...

See the packages vignettes for details and examples: browseVignettes("mvMORPH").

mvMORPH 1.1.4

  1. This is the version 1.1.4:
  • add the BMM model in mvgls
  • predict option for mvgls objects
  • DFA on mvgls objects
  1. TODO:
  • Incorporation of a tests-suite
  • Implement the sampler (upcomming mvMORPH)
  • Code improvements
  • Extend the shift model to TS
  • Improved mvOU model
  • Threshold model for categorical data

The current stable version of the mvMORPH package (1.1.4) is on the CRAN repository. https://cran.r-project.org/package=mvMORPH

Package Installation

You can install the package directly from gitHub through devtools:

library(devtools)

install_github("JClavel/mvMORPH", build_vignettes = TRUE)

(The installation may crash if your dependencies are not up to date. Note that you may also need to install Rtools to compile the C codes included in the package. For [Windows] (https://cran.r-project.org/bin/windows/Rtools/) and for [Mac] (https://r.research.att.com) (and [Tools] (https://r.research.att.com/tools/) )

Report an issue

Any bugs encountered when using the package can be reported here

Package citation

Clavel, J., Escarguel, G., Merceron, G. 2015. mvMORPH: an R package for fitting multivariate evolutionary models to morphometric data. Methods in Ecology and Evolution, 6(11):1311-1319. DOI: 10.1111/2041-210X.12420

[Download version with appended supplementary material.] (https://www.researchgate.net/publication/277711429_mvMORPH_An_R_package_for_fitting_multivariate_evolutionary_models_to_morphometric_data/)

Copy Link

Version

Install

install.packages('mvMORPH')

Monthly Downloads

627

Version

1.1.4

License

GPL (>= 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Julien Clavel

Last Published

March 17th, 2021

Functions in mvMORPH (1.1.4)

GIC

Generalized Information Criterion (GIC) to compare models fit with mvgls by Maximum Likelihood (ML) or Penalized Likelihood (PL).
fitted.mvgls

Extract multivariate gls model fitted values
coef.mvgls

Extract multivariate gls model coefficients
LRT

Likelihood Ratio Test
halflife

The phylogenetic half-life for an Ornstein-Uhlenbeck process
aicw

Akaike weights
manova.gls

Multivariate Analysis of Variance
mv.Precalc

Model parameterization for the various mvMORPH functions
EIC

Extended Information Criterion (EIC) to compare models fit with mvgls by Maximum Likelihood (ML) or Penalized Likelihood (PL).
estim

Ancestral states reconstructions and missing value imputation with phylogenetic/time-series models
mvLL

Multivariate (and univariate) algorithms for log-likelihood estimation of arbitrary covariance matrix/trees
mvEB

Multivariate Early Burst model of continuous traits evolution
mvBM

Multivariate Brownian Motion models of continuous traits evolution
mvRWTS

Multivariate Brownian motion / Random Walk model of continuous traits evolution on time series
mvSHIFT

Multivariate change in mode of continuous trait evolution
mvMORPH-package

Multivariate Comparative Methods for Fitting Evolutionary Models to Morphometric Data
mvOUTS

Multivariate continuous trait evolution for a stationary time series (Ornstein-Uhlenbeck model)
vcov.mvgls

Calculate variance-covariance matrix for a fitted object of class 'mvgls'
stationary

The stationary variance of an Ornstein-Uhlenbeck process
mvOU

Multivariate Ornstein-Uhlenbeck model of continuous traits evolution
mvSIM

Simulation of (multivariate) continuous traits on a phylogeny
residuals.mvgls

Extract gls model residuals
pruning

Pruning algorithm to compute the square root of the phylogenetic covariance matrix and it's determinant.
mvgls

Fit linear model using Generalized Least Squares to multivariate (high-dimensional) data sets.
mvgls.pca

Principal Component Analysis (PCA) based on GLS estimate of the traits variance-covariance matrix (possibly regularized).
mvgls.dfa

Discriminant Function Analysis (DFA) - also called Linear Discriminant Analysis (LDA) or Canonical Variate Analysis (CVA) - based on multivariate GLS model fit
phyllostomid

Phylogeny and trait data for a sample of Phyllostomid bats
predict.mvgls

Predictions from (multivariate) gls model fit