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{X} \boldsymbol{\hat{β}}
where
\boldsymbol{\hat{β}} = ≤ft( \mathbf{X}^{T} \mathbf{X} \right)^{-1} ≤ft( \mathbf{X}^{T} \mathbf{y} \right) .
1 |
X |
|
betahat |
Numeric vector of length |
y |
Numeric vector of length |
If betahat = NULL, the betahat vector is computed
using betahat() with X and y as arguments.
If betahat is provided, y is not needed.
Returns y-hat ≤ft( \mathbf{\hat{y}} \right).
Ivan Jacob Agaloos Pesigan
Wikipedia: Ordinary Least Squares
Other y-hat functions:
.Py(),
Py(),
Xbetahat(),
yhat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.