Description Usage Arguments Details Value Author(s) References See Also
Calculates y-hat ≤ft( \mathbf{\hat{y}} \right), that is, the predicted value of \mathbf{y} given \mathbf{X} using
\mathbf{\hat{y}} = \mathbf{P} \mathbf{y}
where
\mathbf{P} = \mathbf{X} ≤ft( \mathbf{X}^{T} \mathbf{X} \right)^{-1} \mathbf{X}^{T} .
1 |
y |
Numeric vector of length |
P |
|
X |
|
If P = NULL, the P matrix is computed using P()
with X as its argument. If P is provided, X is not needed.
Returns y-hat ≤ft( \mathbf{\hat{y}} \right).
Ivan Jacob Agaloos Pesigan
Wikipedia: Ordinary Least Squares
Other y-hat functions:
.Xbetahat(),
Py(),
Xbetahat(),
yhat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.