| logit | R Documentation |
logit and logistic implement the logit and logistic transformations, respectively.
logit(p) logistic(x)
p |
A numeric vector whose components are numbers between 0 and 1. |
x |
A numeric vector. |
The functions apply the logit and logistic transformation to each element of the vector passed as argument. In particular, logit(p)=ln(p/(1-p)) and logistic(x)=exp(x)/(1+exp(x)).
logit(0.1) logit(0.5) logistic(0) logistic(logit(0.25)) logit(logistic(2))