ToSimplex | R Documentation |
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.
ToSimplex(object)
object |
an object of class "lmCoDa" |
an object of class "lm" and "lmCoDa" if the formula include at least one log-transformation
Lukas Dargel
Rodrigue Nasr
lm()
, lmCoDa()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.