Description Usage Arguments Value Author(s)
Calculates the hat matrix (H)
\mathbf{H} = \mathbf{X} ≤ft( \mathbf{X}^{\prime} \mathbf{X} \right)^{-1} \mathbf{X}^{\prime}
.
1 | linreg_h(X)
|
X |
The data matrix, that is an n \times k matrix of n observations of k regressors, which includes a regressor whose value is 1 for each observation. |
Returns the hat matrix (H).
Ivan Jacob Agaloos Pesigan
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.