Added calculation of model coefficients for probabilities.