Learn R Programming

ToolsForCoDa (version 1.1.0)

Multivariate Tools for Compositional Data Analysis

Description

Provides functions for multivariate analysis with compositional data. Includes a function for doing compositional canonical correlation analysis. This analysis requires two data matrices of compositions, which can be adequately transformed and used as entries in a specialized program for canonical correlation analysis, that is able to deal with singular covariance matrices. The methodology is described in Graffelman et al. (2017) . Functions for log-ratio principal component analysis with condition number computations and log-ratio discriminant analysis have been added to the package.

Copy Link

Version

Install

install.packages('ToolsForCoDa')

Monthly Downloads

226

Version

1.1.0

License

GPL (>= 2)

Maintainer

Jan Graffelman

Last Published

January 9th, 2025

Functions in ToolsForCoDa (1.1.0)

lrpca

Logratio principal component analysis with condition indices
ternaryplot

Create a Ternary Plot for three-part Compositions
tr

Compute the trace of a matrix
cen

centring of a data matrix
canocov

Canonical correlation analysis.
clrmat

Centred log-ratio transformation
largest.kappas

Calculate condition indices for subcompositions
PinotNoir

Chemical composition of Pinot Noir wines
bentonites

Isotopic and chemical compositions of bentonites
lrlda

Logratio Linear Discriminant Analysis
Artificial

Two sets of 3-part compositions
lrcco

Logratio Canonical Correlation Analysis
Tubb

Romano-British pottery oxides