Skip to content

Instantly share code, notes, and snippets.

@dmarcelinobr
Created May 30, 2013 15:10
Show Gist options
  • Save dmarcelinobr/5678605 to your computer and use it in GitHub Desktop.
Save dmarcelinobr/5678605 to your computer and use it in GitHub Desktop.
# http://en.wikipedia.org/wiki/Logit#Definition
# Logit: From probability to normal
# Logistic (inverse logit): From normal to probability
Logit <- function(p){log(p / (1 - p))}
Logistic <- function(x){exp(x) / (1 + exp(x))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment