https://cran.r-project.org/web/packages/calibrate/calibrate.pdf
