Ternary diagram with confidence region for the matrix of coefficients of the SCLS or the TFLR model {Compositional}R Documentation

Ternary diagram with confidence region for the matrix of coefficients of the SCLS or the TFLR model

Description

Ternary diagram with confidence region for the matrix of coefficients of the SCLS or the TFLR model.

Usage

ternary.coefcr(y, x, type = "scls", conf = 0.95, R = 1000, dg = FALSE, hg = FALSE)

Arguments

y

A matrix with the response compositional data.

x

A matrix with the predictor compositional data.

type

The type of model to use, "scls" or "tflr". Depending on the model selected, the function will construct the confidence regions of the estimated matrix of coefficients of that model.

conf

The confidence level, by default this is set to 0.95.

R

Number of bootstrap replicates to run.

dg

Do you want diagonal grid lines to appear? If yes, set this TRUE.

hg

Do you want horizontal grid lines to appear? If yes, set this TRUE.

Details

This function runs the SCLS or the TFLR model and constructs confidence regions for the estimated matrix of regression coefficients using non-parametric bootstrap.

Value

A ternary plot of the estimated matrix of coefficients of the SCLS or of the TFLR model, and their associated confidence regions.

Author(s)

Michail Tsagris.

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

References

Fiksel J., Zeger S. and Datta A. (2022). A transformation-free linear regression for compositional outcomes and predictors. Biometrics, 78(3): 974–987.

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

See Also

ternary, scls, tflr, ternary.mcr

Examples

y <- rdiri(50, runif(3))
x <- rdiri(50, runif(4))
ternary.coefcr(y, x, R = 500, dg = TRUE, hg = TRUE)

[Package Compositional version 6.8 Index]