g.calibrate function

function to estimate calibration error and make recommendation for addressing it