Other packages > Find by keyword >

Compositional  

Compositional Data Analysis
View on CRAN: Click here


Download and install Compositional package within the R console
Install from CRAN:
install.packages("Compositional")

Install from Github:
library("remotes")
install_github("cran/Compositional")

Install by package version:
library("remotes")
install_version("Compositional", "8.0")



Attach the package and use:
library("Compositional")
Maintained by
Michail Tsagris
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2016-02-09
Latest Update: 2025-06-22
Description:
Regression, classification, contour plots, hypothesis testing and fitting of distributions for compositional data are some of the functions included. We further include functions for percentages (or proportions). The standard textbook for such data is John Aitchison's (1986) "The statistical analysis of compositional data". Relevant papers include: a) Tsagris M.T., Preston S. and Wood A.T.A. (2011). "A data-based power transformation for compositional data". Fourth International International Workshop on Compositional Data Analysis. b) Tsagris M. (2014). "The k-NN algorithm for compositional data: a revised approach with and without zero values present". Journal of Data Science, 12(3): 519--534. . c) Tsagris M. (2015). "A novel, divergence based, regression for compositional data". Proceedings of the 28th Panhellenic Statistics Conference, 15-18 April 2015, Athens, Greece, 430--444. . d) Tsagris M. (2015). "Regression analysis with compositional data containing zero values". Chilean Journal of Statistics, 6(2): 47--57. . e) Tsagris M., Preston S. and Wood A.T.A. (2016). "Improved supervised classification for compositional data using the alpha-transformation". Journal of Classification, 33(2): 243--261. . f) Tsagris M., Preston S. and Wood A.T.A. (2017). "Nonparametric hypothesis testing for equality of means on the simplex". Journal of Statistical Computation and Simulation, 87(2): 406--422. . g) Tsagris M. and Stewart C. (2018). "A Dirichlet regression model for compositional data with zeros". Lobachevskii Journal of Mathematics, 39(3): 398--412. . h) Alenazi A. (2019). "Regression for compositional data with compositional data as predictor variables with or without zero values". Journal of Data Science, 17(1): 219--238. . i) Tsagris M. and Stewart C. (2020). "A folded model for compositional data analysis". Australian and New Zealand Journal of Statistics, 62(2): 249--277. . j) Alenazi A. (2021). Alenazi, A. (2023). "A review of compositional data analysis and recent advances". Communications in Statistics--Theory and Methods, 52(16): 5535--5567. . k) Alenazi A.A. (2022). "f-divergence regression models for compositional data". Pakistan Journal of Statistics and Operation Research, 18(4): 867--882. . l) Tsagris M. and Stewart C. (2022). "A Review of Flexible Transformations for Modeling Compositional Data". In Advances and Innovations in Statistics and Data Science, pp. 225--234. . m) Tsagris M., Alenazi A. and Stewart C. (2023). "Flexible non-parametric regression models for compositional response data with zeros". Statistics and Computing, 33(106). . n) Tsagris. M. (2024). "Constrained least squares simplicial-simplicial regression". .
How to cite:
Michail Tsagris (2016). Compositional: Compositional Data Analysis. R package version 8.0, https://cran.r-project.org/web/packages/Compositional. Accessed 08 Aug. 2026.
Previous versions and publish date:
1.0 (2016-02-09 14:36), 1.1 (2016-02-16 13:48), 1.2 (2016-04-01 10:45), 1.3 (2016-05-27 15:51), 1.4 (2016-07-08 11:34), 1.5 (2016-07-10 15:32), 1.6 (2016-08-01 14:55), 1.8 (2016-08-05 15:11), 2.0 (2016-10-11 12:42), 2.2 (2016-12-13 15:33), 2.3 (2017-02-28 10:58), 2.4 (2017-05-29 18:17), 2.5 (2017-07-26 23:32), 2.6 (2017-10-07 16:30), 2.7 (2017-11-23 22:02), 2.8 (2018-01-14 16:39), 2.9 (2018-03-07 22:16), 3.0 (2018-05-24 10:41), 3.1 (2018-06-04 12:27), 3.2 (2018-12-17 14:20), 3.3 (2019-01-13 12:50), 3.4 (2019-03-12 23:47), 3.5 (2019-06-18 17:10), 3.6 (2019-11-23 10:30), 3.7 (2020-02-25 20:30), 3.8 (2020-03-16 19:10), 3.9 (2020-07-05 20:40), 4.1 (2020-09-19 08:40), 4.2 (2020-11-12 09:00), 4.3 (2021-01-19 10:40), 4.4 (2021-02-22 19:00), 4.5 (2021-03-23 15:10), 4.6 (2021-04-27 17:40), 4.7 (2021-05-13 08:22), 4.8 (2021-07-08 18:20), 4.9 (2021-09-02 23:11), 5.0 (2021-10-06 09:20), 5.2 (2021-11-08 20:10), 5.3 (2021-12-11 19:40), 5.4 (2022-02-07 22:00), 5.5 (2022-03-23 23:30), 5.6 (2022-05-11 17:40), 5.7 (2022-06-22 15:10), 5.8 (2022-07-08 00:30), 5.9 (2022-10-03 16:40), 6.0 (2022-11-12 01:50), 6.1 (2023-01-08 22:10), 6.2 (2023-03-13 19:30), 6.3 (2023-06-29 21:10), 6.4 (2023-09-15 18:14), 6.5 (2023-10-23 11:20), 6.6 (2023-12-09 12:00), 6.7 (2024-02-29 14:22), 6.8 (2024-04-01 16:40), 6.9 (2024-07-08 18:30), 7.0 (2024-08-23 10:40), 7.1 (2024-10-09 11:50), 7.2 (2024-12-04 17:00), 7.3 (2025-01-13 18:00), 7.5 (2025-06-13 00:20), 7.6 (2025-06-22 15:10), 7.7 (2025-08-18 14:00), 7.8 (2025-09-17 07:10), 7.9 (2025-11-18 15:50), 8.0 (2025-12-04 07:10), 8.1 (2026-02-17 09:50), (2026-07-09 08:00)
Other packages that cited Compositional R package
View Compositional citation profile
Other R packages that Compositional depends, imports, suggests or enhances
Complete documentation for Compositional
Functions, R codes and Examples using the Compositional R package
Some associated functions: Compositional-package . a.est . acor . acor.tune . aeqdist.etest . ait . ait.test . aitdist . akern.reg . akernreg.tune . aknn.reg . aknnreg.tune . alfa.contour . alfa.knn.reg . alfa.mds . alfa.mix.norm . alfa.nb . alfa . alfa.pca . alfa.pcr . alfa.profile . alfa.rda . alfa.reg . alfa.ridge . alfa.tune . alfadist . alfainv . alfaknnreg.tune . alfanb.tune . alfann . alfapcr.tune . alfarda.tune . alfareg.tune . alfaridge.plot . alfaridge.tune . alpha.mle . alr.all . alr . bc . beta.est . beta.reg . bic.alfamixnorm . bic.mixcompnorm . bivt.contour . choose.pc . colbeta.mle . comp.den . comp.kern . comp.kerncontour . comp.knn . comp.nb . comp.ppr . comp.reg . comp.test . compbn . compknn.tune . compnorm.contour . compppr.tune . cv.comp.reg . cv.compnb . cv.dda . cv.lasso.compreg . cv.lasso.klcompreg . cv.olscompcomp . cv.tflr . dda . ddiri . dfd . dfolded . dgendiri . diri.contour . diri.est . diri.nr . diri.reg . dirimean.test . divergence . dmix.compnorm . dmixdiri . eel.test1 . eel.test2 . el.test1 . el.test2 . esov.mds . esov . fd.contour . fd.est . folded.contour . fp . frechet . frechet2 . gendiri.contour . glm.pcr . glmpcr.tune . green . hd.meantest2 . helm . hotel1T2 . hotel2T2 . ice.kernreg . ice.pprcomp . james . kent.contour . kern.reg . kernreg.tune . kl.alfapcr . kl.compreg . kl.compreg2 . kl.diri.normal . kl.diri . klalfapcr.tune . lasso.compreg . lasso.klcompreg . lassocoef.plot . lc.glm . lc.reg . lc.reg2 . lcreg.aov . logpca . makefolds . maov . maovjames . mix.compnorm.contour . mix.compnorm . mixdiri.contour . mkde . mkde.tune . mlr . multivreg . multivt . ols.compcomp . ols.compreg . ols.prop.reg . pcc . perturbation . pivot . pow . pprcomp . pprcomp.tune . probout . propreg . rbeta1 . rcompnorm . rcompsn . rcompt . rda . rda.tune . rdiri . rfd . rfolded . rgendiri . ridge.plot . ridge.reg . ridge.tune . rmixcomp . rmixdiri . skewnorm.contour . spatmed.reg . sym.test . ternary . ternary.reg . tflr . totvar . ulc.glm . ulc.reg . ulc.reg2 . unitweib.reg . zad.est . zadr . zeroreplace . 
Some associated R codes: a.est.R . a.mle.R . acor.R . acor.tune.R . aeqdist.etest.R . ait.R . ait.knn.R . ait.test.R . aitdist.R . aitdista.R . aitknn.tune.R . akern.reg.R . akernreg.tune.R . aknn.reg.R . aknnreg.tune.R . alef.R . alfa.R . alfa.contour.R . alfa.fda.R . alfa.knn.R . alfa.knn.reg.R . alfa.mds.R . alfa.mix.norm.R . alfa.nb.R . alfa.pca.R . alfa.pcr.R . alfa.profile.R . alfa.rda.R . alfa.reg.R . alfa.ridge.R . alfa.tune.R . alfadist.R . alfadista.R . alfafda.tune.R . alfainv.R . alfaknn.tune.R . alfaknnreg.tune.R . alfanb.tune.R . alfann.R . alfapcr.tune.R . alfarda.tune.R . alfareg.tune.R . alfaridge.plot.R . alfaridge.tune.R . alpha.mle.R . alr.R . alr.all.R . alrinv.R . bc.R . beta.est.R . beta.reg.R . bic.alfamixnorm.R . bic.mixcompnorm.R . bivt.contour.R . choose.pc.R . colbeta.est.R . collogitnorm.est.R . colsimplex.est.R . colunitweibull.est.R . comp.den.R . comp.kern.R . comp.kerncontour.R . comp.knn.R . comp.nb.R . comp.ppr.R . comp.reg.R . comp.test.R . compbn.R . compknn.tune.R . compnorm.contour.R . compppr.tune.R . cv.comp.reg.R . cv.compnb.R . cv.dda.R . cv.lasso.compreg.R . cv.lasso.klcompreg.R . cv.olscompcomp.R . cv.tflr.R . dda.R . ddiri.R . dfd.R . dfolded.R . dgendiri.R . diri.contour.R . diri.est.R . diri.nr.R . diri.reg.R . diri.reg2.R . dirimean.test.R . divergence.R . dmix.compnorm.R . dmixdiri.R . eel.test1.R . eel.test2.R . el.test1.R . el.test2.R . es.R . esov.R . esov.mds.R . esova.R . fd.contour.R . fd.est.R . folded.contour.R . fp.R . frechet.R . frechet2.R . gendiri.contour.R . glm.pcr.R . glmpcr.tune.R . green.R . hd.meantest2.R . helling.prop.reg.R . helm.R . hotel1T2.R . hotel2T2.R . hsecant01.est.R . ibeta.est.R . ice.kernreg.R . ice.pprcomp.R . james.R . js.compreg.R . kent.contour.R . kern.reg.R . kernreg.tune.R . kl.alfapcr.R . kl.compreg.R . kl.compreg2.R . kl.diri.R . kl.diri.normal.R . klalfapcr.tune.R . klcompreg.boot.R . kumar.est.R . lasso.compreg.R . lasso.klcompreg.R . lassocoef.plot.R . lc.glm.R . lc.reg.R . lc.reg2.R . lcreg.aov.R . logitnorm.est.R . logpca.R . makefolds.R . maov.R . maovjames.R . mix.compnorm.R . mix.compnorm.contour.R . mixdiri.contour.R . mixreg.R . mkde.R . mkde.tune.R . mlr.R . mlrinv.R . multinompcr.tune.R . multivreg.R . multivt.R . ols.compcomp.R . ols.compreg.R . ols.prop.reg.R . pcc.R . pcr.R . pcr.tune.R . perturbation.R . pivot.R . pivotinv.R . pow.R . pprcomp.R . pprcomp.tune.R . probout.R . propreg.R . propregs.R . rbeta1.R . rcompnorm.R . rcompsn.R . rcompt.R . rda.R . rda.tune.R . rdiri.R . rfd.R . rfolded.R . rgendiri.R . ridge.plot.R . ridge.reg.R . ridge.tune.R . rlogitnorm.R . rmixcomp.R . rmixdiri.R . runitweibull.R . simplex.est.R . skewnorm.contour.R . spatmed.reg.R . sym.test.R . symkl.compreg.R . ternary.R . ternary.reg.R . tflr.R . totvar.R . tv.compreg.R . ulc.glm.R . ulc.reg.R . ulc.reg2.R . unitweib.reg.R . unitweibull.est.R . zad.est.R . zadr.R . zeroreplace.R . zilogitnorm.est.R .  Full Compositional package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

skewt  
The Skewed Student-t Distribution
Density, distribution function, quantile function and random generation for the skewed t distributio ...
Download / Learn more Package Citations See dependency  
box  
Write Reusable, Composable and Modular R Code
A modern module system for R. Organise code into hierarchical, composable, reusable modules, and us ...
Download / Learn more Package Citations See dependency  
Morpho  
Calculations and Visualisations Related to Geometric Morphometrics
A toolset for Geometric Morphometrics and mesh processing. This includes (among other stuff) mesh d ...
Download / Learn more Package Citations See dependency  
FastGaSP  
Fast and Exact Computation of Gaussian Stochastic Process
Implements fast and exact computation of Gaussian stochastic process with the Matern kernel using fo ...
Download / Learn more Package Citations See dependency  
productplots  
Product Plots for R
Framework for visualising tables of counts, proportions and probabilities. The framework is called ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  

28,083

R Packages

239,283

Dependencies

74,752

Author Associations

28,084

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA