mdatools: Package for Multivariate Data Analysis (Chemometrics)

mdatoolsR Documentation

Package for Multivariate Data Analysis (Chemometrics)

Description

This package contains classes and functions for most common methods used in Chemometrics. For a complete list of functions, use library(help = 'mdatools').

Details

The project is hosted on GitHub (https://svkucheryavski.github.io/mdatools/), there you can also find a Bookdown user tutorial explaining most important features of the package. There is also a dedicated YouTube channel (https://www.youtube.com/channel/UCox0H4utfMq4FIu2kymuyTA) with introductory Chemometric course with examples based on mdatools functionality.

Every method is represented by two classes: a model class for keeping all parameters and information about the model, and a class for keeping and visualising results of applying the model to particular data values.

Every model class, e.g. pls, has all needed functionality implemented as class methods, including model calibration, validation (test set and cross-validation), visualisation of the calibration and validation results with various plots and summary statistics.

So far the following modelling and validation methods are implemented:

pca, pcares Principal Component Analysis (PCA).
pls, plsres Partial Least Squares regression (PLS).
simca, simcares Soft Independent Modelling of Class Analogues (SIMCA)
simcam, simcamres SIMCA for multiple classes case (SIMCA)
plsda, plsdares Partial Least Squares Dscriminant Analysis (PLS-DA).
randtest Randomization test for PLS-regression.
ipls Interval PLS variable.
mcrals Multivariate Curve Resolution with Alternating Least Squares.
mcrpure Multivariate Curve Resolution with Purity approach.

Methods for data preprocessing:

prep.autoscale data mean centering and/or standardization.
prep.savgol Savitzky-Golay transformation.
prep.snv Standard normal variate.
prep.msc Multiplicative scatter correction.
prep.norm Spectra normalization.
prep.alsbasecorr Baseline correction with Asymmetric Least Squares.

All plotting methods are based on two functions, mdaplot and mdaplotg. The functions extend the basic functionality of R plots and allow to make automatic legend and color grouping of data points or lines with colorbar legend, automatically adjust axes limits when several data groups are plotted and so on.

Author(s)

Sergey Kucheryavskiy (svkucheryavski@gmail.com)


svkucheryavski/mdatools documentation built on Aug. 25, 2023, 12:27 p.m.