expit: Expit (Inverse logit)

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

Function to calculate the inverse-logit (or expit) expit(x) = e^x/(1 + e^x) = 1/(1 + e^(-x)) More numerically stable if you calculate the function differently based on whether x is positive or negative Note: changing to simpler (faster) evaluation using plogis

Usage

1
expit(q, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)

Arguments

input

Argument to the inverse logit function

Examples

1
2
3
4
## Single value
expit(5)
## Matrix of values
expit(matrix(1:4,2,2))

lcomm/ltools documentation built on May 20, 2019, 11:28 p.m.