Calibration of thresholds of control charts such as CUSUM charts based on past data, taking estimation error into account.