do linear regression with local CI
- preliminary direct support for built in gamma calibration