Logistic function

logistic—function to perform logistic analysis and return the results to the user.