logit_inverse: Logistic (sigmoid or inverse logit) function

View source: R/logit_inverse.R

logit_inverseR Documentation

Logistic (sigmoid or inverse logit) function

Description

Applies inverse logit (sigmoid or logistic) transformation

Usage

logit_inverse(x)

Arguments

x

a vector of numbers

Value

A vector ranging from 0 to 1

Note

Inverse logit can be expressed as exp(x) / (1 + exp(x)) or 1 / (1 + exp(-x))
See https://hausetutorials.netlify.com/posts/2019-04-13-logistic-regression/#inverse-logit-and-logit-functions for intro to logit and inverse logit functions.

Author(s)

Hause Lin

Examples

logit_inverse(-5:5)


hauselin/hausekeep documentation built on Feb. 3, 2023, 3:09 p.m.