The alpha-SCLS model | R Documentation |
\alpha
-SCLS model for compositional responses and predictors
The \alpha
-SCLS model for compositional responses and predictors.
ascls(y, x, a = seq(0.1, 1, by = 0.1), xnew)
y |
A matrix with the compositional data (dependent variable). Zero values are allowed. |
x |
A matrix with the compositional predictors. Zero values are allowed. |
a |
A vector or a single number of values of the |
xnew |
The new data for which predictions will be made. |
This is an extension of the SCLS model that includes the \alpha
-transformation and is intended solely for prediction purposes.
A list with matrices containing the predicted simplicial response values, one matrix for each value of \alpha
.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Tsagris. M. (2024). Constrained least squares simplicial-simplicial regression. https://arxiv.org/pdf/2403.19835.pdf
scls, cv.ascls, atflr
library(MASS)
set.seed(1234)
y <- rdiri(214, runif(4, 1, 3))
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
mod <- ascls(y, x, xnew = x)
mod
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.