logitTrans {lca} | R Documentation |
logitTrans
takes a vector z of length n whose
elements are non-negative and sum is less than one, and transforms it to the
space of real numbers R^{n}. expitTrans
performs
the inverse operation.
logitTrans(z) expitTrans(x)
z |
a vector of non-negative values whose sum is strictly less than 1. |
x |
a vector of arbitrary real values. |
logitTrans(z)_i = log (z_i / (1 - z_1 - ... - z_n))
and
expitTrans(x)_i = exp(x_i) / (1 + exp(x_1) + ... + exp(x_n))
Both functions return a numeric vector of the same length as the input.
Robin Evans
z = c(0.2, 0.4, 0.1) x = logitTrans(z) x expitTrans(x)