Computing single H matrix in AICc-function using the Mahalanobis distance
hat_matrix_cpp(X, mcov, S_scale_dist, h)
matrix with "covariates"
covariance matrix
logical indicating whether the Mahalanobis distance should be scaled with the number of variables
numeric specifying the scaling (sigma)
Matrix of dimension ncol(X)*ncol(X)