Skip to content

Instantly share code, notes, and snippets.

@Guibrich
Created May 31, 2013 23:17
Show Gist options
  • Save Guibrich/5688587 to your computer and use it in GitHub Desktop.
Save Guibrich/5688587 to your computer and use it in GitHub Desktop.
png("Log", width=6,height=7)
x = seq(0.00001,0.9999,length = 100)
logit<-function(t)
{
log(t/(1-t))
}
curve(logit(x),col = "tomato",lwd = 2)
curve(qnorm(x),col = "blue",lwd = 2,add=T)
curve(log(-log(1-x)),col = "purple",lwd = 2,add=T)
a=par("usr")
legend(a[1],a[4], c("logit","probit","log-log"), col = c("tomato","blue","purple"),lty=1)
dev.off()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment