stats
GLMInfluence.
hat_matrix_diag
Diagonal of the hat_matrix for GLM
Notes
This returns the diagonal of the hat matrix that was provided as argument to GLMInfluence or computes it using the results method get_hat_matrix.