Learn R Programming

OptHoldoutSize (version 0.1.0.1)

logistic: Logistic

Description

Logistic function: -log((1/x)-1)

Usage

logistic(x)

Value

value of logit(x); na if x is outside (0,1)

Arguments

x

argument

Examples

Run this code

# Plot
x=seq(0,1,length=100)
plot(x,logistic(x),type="l")

# Logit and logistic are inverses
x=seq(-5,5,length=1000)
plot(x,logistic(logit(x)),type="l")

Run the code above in your browser using DataLab