Learn R Programming

drcarlate (version 1.2.0)

LogisticReg: Logistic Regression Function

Description

Logestic CDF(cumulative distribution function).

Usage

LogisticReg(x)

Value

y A nx1 matrix. y equals to exp(x)/(1+exp(x)) if y is not NA and 0 else.

Arguments

x

A nx1 matrix.

Examples

Run this code
x <- pracma::rand(5,1)
y <- LogisticReg(x = x)

Run the code above in your browser using DataLab