Created
September 13, 2011 12:56
-
-
Save dsparks/1213747 to your computer and use it in GitHub Desktop.
Logit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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