cal_estimate_logistic function

Uses a logistic regression model to calibrate probabilities