R/applicability.R
q_statistic.Rd
Q_i = e_i %*% e_i^T (eq. 2 in Safanelli 2025).
q_statistic(E)
Numeric matrix of PCA residuals (X - X_hat)
Numeric vector of Q values, length nrow(E)