The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
This R package provides tools for analyzing compositional data using log-ratio coordinates. It enables users to define coordinate systems tailored to compositional datasets and to generate coordinates based on these systems.
The package focuses on the construction and application of orthonormal and non-orthonormal coordinate systems for representing compositions in real space, facilitating advanced statistical modeling and interpretation.
ilr_basis()
, alr_basis()
,
clr_basis()
– classical log-ratio bases:
pc_basis()
, pb_basis()
,
pw_basis()
– domain-specific and data-driven bases:
coordinates(x, basis)
: expresses a composition
x
in coordinates with respect to a given
basis
.
composition(z, basis)
: reconstructs a composition
from coordinates z
and the associated
basis
.
library(coda.base)
# Define a simple 3-part composition
<- c('a' = 0.2, 'b' = 0.3, 'c' = 0.5)
x
# Create an ILR basis and express x in ILR coordinates
<- ilr_basis(x)
B <- coordinates(x, B)
h
h
# Recover the original composition
composition(h, B)
You can install the development version from GitHub:
# Install development version from GitHub
::install_github("mcomas/coda.base") remotes
and the cran version with:
# Install release version from CRAN
install.packages("coda.base")
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.