Simulation and Likelihood Calculation of Phylogenetic Comparative Models
Overview
Phylogenetic comparative methods represent models of continuous trait data associated with the tips of a phylogenetic tree. Examples of such models are Gaussian continuous time branching stochastic processes such as Brownian motion (BM) and Ornstein-Uhlenbeck (OU) processes, which regard the data at the tips of the tree as an observed (final) state of a Markov process starting from an initial state at the root and evolving along the branches of the tree. The PCMBase R package provides a general framework for manipulating such models. This framework consists of an application programming interface for specifying data and model parameters, and efficient algorithms for simulating trait evolution under a model and calculating the likelihood of model parameters for an assumed model and trait data. The package implements a growing collection of models, which currently includes BM, OU, BM/OU with jumps, two-speed OU as well as mixed Gaussian models, in which different types of the above models can be associated with different branches of the tree. The PCMBase package is limited to trait-simulation and likelihood calculation of (mixed) Gaussian phylogenetic models. The PCMFit package provides functionality for inference of these models to tree and trait data. The package web-site https://venelin.github.io/PCMBase/ provides access to the documentation and other resources.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 135
- Examples that run
- 100%39 run in a plain check
- Exported functions with examples
- 31%
- Documented parameters
- 91%
- Return-value docs
- 98%
- Help pages citing references
- 1%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Releases over time
Issues over time
9 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/venelin/pcmbase on 2026-10-18.
Show all practicesHide 3 practices
Dependencies
Installing PCMBase adds 25 packages (13 with compiled code, 24 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, Rcpp 1.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.15Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.2.14
- RR 4.3.0 released · 2023-04-21
- 1.2.132022-11-18 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.2.122021-06-07 · diff ↗ ·
added 7 exports
MixedGaussianTemplate, PCMTreeGetNodeLabels, PCMTreeGetRootLabel, PCMTreeGetTipLabels, PCMTreeInsertTipsOrSingletons, as.MixedGaussian, is.GaussianPCM - RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.2.112019-12-12 · diff ↗ ·
removed 1 export
UpperCholadded 7 exports
MatchListMembers, PCMAddToListAttribute, PCMCombineListAttribute, PCMGetAttribute, PCMListMembers, PCMSetAttribute, UpperTriFactor - 1.2.102019-09-11 · diff ↗ ·
removed 1 export
is.CholeskiFactoradded 11 exports
FormatTableAsLatex, PCMExtractDimensions, PCMExtractRegimes, PCMFindMethod, PCMLikTrace, PCMParamLocateInShortVector, PCMTable, PCMTreeGetTipsInRegime, PCMTreeVCV, UpperChol, is.CholeskyFactor - RR 3.6.0 released · 2019-04-26
- 1.2.92019-03-15 · diff ↗ ·
removed 10 exports
PCMTreeDtNodeRegimes, PCMTreeExtractBackboneRegimes, PCMTreeGetRegimeForNode, PCMTreeGetStartingNodesRegimes, PCMTreeGetTipsInRegime, PCMTreeMatrixTipsInSameRegime, PCMTreeNumUniqueRegimes, PCMTreeSetDefaultRegime, PCMTreeSetRegimes, PCMTreeUniqueRegimesadded 31 exports
Args_MixedGaussian_MGPMDefaultModelTypes, Args_MixedGaussian_MGPMScalarOUType, Args_MixedGaussian_MGPMSurfaceOUType, FalsePositiveRate, MGPMDefaultModelTypes, MGPMScalarOUType, MGPMSurfaceOUType, PCMDefaultModelTypes, PCMGenerateModelTypes, PCMLikDmvNorm, PCMListDefaultParameterizations, PCMModelTypes, PCMTrajectory, PCMTree, PCMTreeBackbonePartition, PCMTreeDtNodes, PCMTreeGetPartNames, PCMTreeGetPartRegimes, PCMTreeGetPartition, PCMTreeGetPartsForNodes, PCMTreeGetRegimesForEdges, PCMTreeGetRegimesForNodes, PCMTreeGetTipsInPart, PCMTreeListAllPartitions, PCMTreeMatrixNodesInSamePart, PCMTreeNumParts, PCMTreeSetPartRegimes, PCMTreeSetPartition, PCMTreeSetRegimesForEdges, TruePositiveRate and 1 more - 1.2.72018-12-01
Show 1 earlier eventHide 1 earlier event
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-12-01
- Total releases
- 8 / 8 yrs
- License
- GPL (>= 3.0)
- Minimum R
- ≥ 3.1.0
- Bundled data
- 23 KB / 2 files
- Download size
- 379 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("PCMBase")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1016/j.tpb.2019.11.005, 10.1073/pnas.1813823116, 10.1111/2041-210x.13136.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.