powered by
Get the hat matrix from a design matrix.
hat_matrix(design)
The \(T\) by \(T\) hat matrix
The \(T\) by \(Q\) design matrix
Uses the QR decomposition.
hat_matrix(cbind(seq(100), 1))
Run the code above in your browser using DataLab