Model Assessment
.model(RSS = NULL, TSS = NULL, n, k, X, y)
| RSS | Numeric. Residual sum of squares. |
|---|---|
| TSS | Numeric. Total sum of squares. |
| n | Integer. Sample size. |
| k | Integer. Number of regressors including a regressor whose value is 1 for each observation. |
| X |
|
| y | Numeric vector of length |
Returns a vector with the following elements
Residual sum of squares.
Mean squared error.
Root mean squared error.
R-squared \(\left( R^2 \right)\).
Adjusted R-squared \(\left( \bar{R}^2 \right)\) .
If RSS = NULL, RSS is computed using RSS()
with X and y as required arguments.
If RSS is provided, X, and y are not needed.
If TSS = NULL, TSS is computed using TSS()
with y as r equired argument.
If TSS is provided, y is not needed.
Wikipedia: Residual Sum of Squares
Wikipedia: Explained Sum of Squares
Wikipedia: Total Sum of Squares
Wikipedia: Coefficient of Determination
Other assessment of model quality functions:
.MSE(),
.R2fromESS(),
.R2fromRSS(),
.RMSE(),
.Rbar2(),
MSE(),
R2(),
RMSE(),
Rbar2(),
model()
Ivan Jacob Agaloos Pesigan