Skip to content

Instantly share code, notes, and snippets.

@dsparks
Created September 13, 2011 12:56
Show Gist options
  • Save dsparks/1213747 to your computer and use it in GitHub Desktop.
Save dsparks/1213747 to your computer and use it in GitHub Desktop.
Logit
# 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