powered by
Computes the logit transformation
logit(x)
log(x/(1-x))
a numeric vector
Julian Faraway
x <=0 or >=1 will return NA
ilogit
logit(c(0.1,0.5,1.0,1.1)) #[1] -2.197225 0.000000 NA NA
Run the code above in your browser using DataLab