logistic regression UDF

A UDF for logistic regression