Learn R Programming

LogRegEquiv (version 0.1.5)

sigmoid: Sigmoid function

Description

This function takes a number \(\theta\) 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

Run this code
# NOT RUN {
sigmoid(0)
# }

Run the code above in your browser using DataLab