Function called by optim to calculate the log likelihood from the probabilities and hence perform the fitting of regression models to the binary data.
Useful links