R/invlogit.R

Defines functions invlogit

Documented in invlogit

invlogit <- function( x ){

# Inverse logit transform of x -- yields probability

infinity <- 78   # Close to largest number that can be exponentiated

tmp <- pmin( infinity, pmax( -infinity, x ) )

tmp <- exp(tmp)

return( tmp/(1+tmp) )     }

Try the asypow package in your browser

Any scripts or data that you put into this service are public.

asypow documentation built on May 2, 2019, 2:37 a.m.