The function converts the output of a "lm" to the "lmCoDa" class, which
offers additional tools for the interpretation of a CoDa regression models.
Most of the work is done by the transformationSummary()
function, which
has its own documentation page, but should be reserved for internal use.
Examples
# XY-compositional model
res <- lm(
ilr(cbind(left, right, extreme_right)) ~
ilr(cbind(Educ_BeforeHighschool, Educ_Highschool, Educ_Higher)),
data = head(election, 20))
res <- ToSimplex(res)
# X-compositional model
res <- lm(YIELD ~ PRECIPITATION + ilr(TEMPERATURES), data = head(rice_yields, 20))
res <- ToSimplex(res)