Description Usage Arguments Details Value Author(s) References See Also
Calculates the adjusted coefficient of determination
\bar{R}^{2} = 1 - ≤ft(\frac{RSS / ≤ft( n - k \right)} {TSS / ≤ft( n - 1 \right)} \right) = 1 - ≤ft( 1 - R^2 \right) \frac{n - 1}{n - k} .
1 |
R2 |
Numeric. Coefficient of determination R^2 . |
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 |
fromRSS |
Logical.
If |
If R2 = NULL
, R2
is computed using R2()
with X
and y
as required arguments.
If R2
is provided, X
, and y
are not needed.
Returns the adjusted coefficient of determination \bar{R}^{2} .
Ivan Jacob Agaloos Pesigan
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()
,
.model()
,
MSE()
,
R2()
,
RMSE()
,
Rbar2()
,
model()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.