powered by
Logestic CDF(cumulative distribution function).
LogisticReg(x)
y A nx1 matrix. y equals to exp(x)/(1+exp(x)) if y is not NA and 0 else.
A nx1 matrix.
x <- pracma::rand(5,1) y <- LogisticReg(x = x)
Run the code above in your browser using DataLab