Add `PearsonResiduals` and `DevianceResiduals` functions.