Learn R Programming

ratematrix (version 1.2.4)

Bayesian Estimation of the Evolutionary Rate Matrix

Description

The Evolutionary Rate Matrix is a variance-covariance matrix which describes both the rates of trait evolution and the evolutionary correlation among multiple traits. This package has functions to estimate these parameters using Bayesian MCMC. It is possible to test if the pattern of evolutionary correlations among traits has changed between predictive regimes painted along the branches of the phylogenetic tree. Regimes can be created a priori or estimated as part of the MCMC under a joint estimation approach. The package has functions to run MCMC chains, plot results, evaluate convergence, and summarize posterior distributions.

Copy Link

Version

Install

install.packages('ratematrix')

Monthly Downloads

236

Version

1.2.4

License

GPL (>= 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel Caetano

Last Published

June 3rd, 2022

Functions in ratematrix (1.2.4)

print.ratematrix_multi_mcmc

Print method for the "ratematrix_multi_mcmc" class.
plotRatematrix

Plot the distribution of evolutionary rate matrices
plotPrior

Plot the prior distribution used in the MCMC analysis
logAnalyzer

Make analysis of the log file of the MCMC chain
makePrior

Generate prior distributions for the multivariate Brownian motion model
readMCMC_Mk

Read output files of MCMC for the predictor regimes.
readMCMC

Read the MCMC output files
testRatematrix

Test for difference between evolutionary rate matrix estimates
print.ratematrix_prior_sample

Print method for the "ratematrix_prior_sample" class.
print.ratematrix_prior_function

Print method for the "ratematrix_prior_function" class.
print.ratematrix_single_chain

Print method for the "ratematrix_single_chain" class.
samplePrior

Take samples from the prior distribution
plotRootValue

Plot posterior distribution of root values for the traits
print.ratematrix_multi_chain

Print method for the "ratematrix_multi_chain" class.
simRatematrix

Simulates multivariate trait evolution using a Brownian motion model
ratematrix

ratematrix.
print.ratematrix_single_mcmc

Print method for the "ratematrix_single_mcmc" class.
computeESS

Compute the ESS for the MCMC samples
mergePosterior

Merge posterior distributions
ratematrixJointMCMC

Estimate the evolutionary rate matrix together with the regimes using Markov-chain Monte Carlo
mergeSimmap

Merge two or more regimes of a 'simmap' tree
ratematrixMCMC

Estimate the evolutionary rate matrix using Markov-chain Monte Carlo
anoles

Data and phylogenetic tree for Anolis lizards
continueMCMC

Continue unfinished MCMC chain or add more generations
extractCorrelation

Extract the posterior distribution of evolutionary correlation
likelihoodFunction

Likelihood function for the multivariate Brownian motion model
getStartPointFromPosterior

Extract sample from MCMC to use as starting point for another MCMC
checkConvergence

Performs convergence tests
fastSimmap

Fast implementation of stochastic mapping.
estimateTimeMCMC

Time estimate to complete a MCMC chain
centrarchidae

Data and phylogenetic tree for Centrarchidae fishes