The Logistic w data table in the Nonlinear Examples sample data folder has an example for fitting a logistic regression using a loss function. The Y column contains ones for events and zeros for non-events. The Model Y column has the linear model, and the Loss column has the loss function. In this example, the loss function is the negative log-likelihood for each observation, or the negative log of the probability of getting the observed response.
Select Help > Sample Data Library and open Nonlinear Examples/Logistic w
Select Analyze > Specialized Modeling > Nonlinear.
Assign Model Y to the X, Predictor Formula role.
Assign Loss to the Loss role.
Nonlinear Launch Window
Nonlinear Fit Control Panel
Solution Report

Help created on 9/19/2017