| dist_coda | R Documentation |
Compute a distance matrix for compositional data using selected CoDa distances.
dist_coda(x, method = "aitchison", ...)
x |
A data matrix whose rows are compositions. |
method |
The distance measure to be used. This must be one of
|
... |
Additional arguments. |
An object of class "dist".
Saperas-Riera, J.; Mateu-Figueras, G.; Martín-Fernández, J.A. (2024). Lp-Norm for Compositional Data: Exploring the CoDa L1-Norm in Penalised Regression. Mathematics, 12(9), 1388. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.3390/math12091388")}.
dist, dist
set.seed(1)
X <- exp(matrix(rnorm(10 * 5), ncol = 5, nrow = 10))
dist_coda(X, method = "aitchison")
dist_coda(X, method = "L1")
dist_coda(X, method = "L1-pw")
dist_coda(X, method = "L1-clr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.