Description Usage Arguments Value
Get the hat matrix of X after adding a column of ones (for the intercept).
1 | hat_mat(X)
|
X |
Numeric matrix. A column of ones will be added for the intercept. |
The hat matrix, a square matrix with the same number of rows/columns
as the number of rows in X
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.