File: logit.R

package info (click to toggle)
r-cran-eco 4.0-1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 772 kB
  • sloc: ansic: 4,214; makefile: 2
file content (5 lines) | stat: -rw-r--r-- 100 bytes parent folder | download | duplicates (7)
1
2
3
4
5
logit <- function(x)
  return(log(x)-log(1-x))

invlogit <- function(x)
  return(exp(x)/(1+exp(x)))