sigmoid: Sigmoid function

View source: R/sigmoid.R

sigmoidR Documentation

Sigmoid function

Description

This function takes a number θ and returns its respective sigmoid probability \frac{e^{theta}}{1+e^{theta}}. This is used in logistic regression to model P(y=1|x).

Usage

sigmoid(theta)

Arguments

theta

the linear predictor

Value

the sigmoid probability

Examples

sigmoid(0)

LogRegEquiv documentation built on March 18, 2022, 6:13 p.m.