Computes the Pearson residuals based on the observed values, fitted means, and the approximate variance of the distribution.
calculatePearsonResiduals(y, fitted, params, family = "gkw")
NumericVector of Pearson residuals.
NumericVector of observations.
NumericVector of fitted values (means).
NumericMatrix with parameters (columns: alpha, beta, gamma, delta, lambda).
String specifying the distribution family (default: "gkw").