pub fn compute_leverage(x: &Matrix, xtx_inv: &Matrix) -> Vec<f64>Expand description
Computes leverage values from the design matrix and its inverse.
Leverage measures how far an observation’s predictor values are from the center of the predictor space. High leverage points can have disproportionate influence on the regression results.
§Arguments
x- Design matrix (including intercept column)xtx_inv- Inverse of X’X matrix