The alpha-SCLS model {Compositional}R Documentation

The \alpha-SCLS model for compositional responses and predictors

Description

The \alpha-SCLS model for compositional responses and predictors.

Usage

ascls(y, x, a = seq(0.1, 1, by = 0.1), xnew)

Arguments

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 \alpha-parameter. This has to be different from zero, and it can take negative values if there are no zeros in the simplicial response (y).

xnew

The new data for which predictions will be made.

Details

This is an extension of the SCLS model that includes the \alpha-transformation and is intended solely for prediction purposes.

Value

A list with matrices containing the predicted simplicial response values, one matrix for each value of \alpha.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Tsagris. M. (2024). Constrained least squares simplicial-simplicial regression. https://arxiv.org/pdf/2403.19835.pdf

See Also

scls, cv.ascls, tflr

Examples

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

[Package Compositional version 6.8 Index]