logit: Logistic function and sigmoid function

logitR Documentation

Logistic function and sigmoid function

Description

These functions compute logit(p) = log(p/(1-p)) and sigmoid(lo) = 1/(1+exp(-lo))

Usage

 logit(p)
 sigmoid(lo)

Arguments

p

a probability in the range 0..1, to be converted to log-adds

lo

log-odds in the range -Inf..Inf, to be converted to a probability

Value

logit(p) computes the logit of the probability p. sigmoid(lo) computes the sigmoid of the log-odds lo

Author(s)

David A. van Leeuwen


davidavdav/ROC documentation built on Sept. 8, 2023, 2:39 p.m.