logit: Logit and inverse-logit functions

Description Usage Arguments Details Value

Description

logit() performs the logit function expit() performs the inverse logit function

Usage

1
2
logit(p)
expit(x)

Arguments

p

A vector of probabilities on the interval [0,1] to be transformed into numbers on the real line.

x

A vector of numbers on the real line to be transformed into probabilities.

Details

The logit function is log(p / (1 - p)). The expit function is exp(x)/(1 + exp(x)).

Value

logit returns a vector of real numbers. expit returns a vector of probabilities.



Search within the osDesign package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.