Description Usage Arguments Value Author(s) References See Also Examples
Calculates the total sum of squares ≤ft( \mathrm{TSS} \right) using
\mathrm{TSS} = ∑_{i = 1}^{n} ≤ft( Y_i - \bar{Y} \right)^2 \\ = ∑_{i = 1}^{n} Y_{i}^{2} - n \bar{Y}^2
In matrix form
\mathrm{TSS} = ∑_{i = 1}^{n} ≤ft( \mathbf{y} - \mathbf{\bar{y}} \right)^2
Equivalent computational matrix formula
\mathrm{TSS} = \mathbf{y}^{\prime} \mathbf{y} - n \mathbf{\bar{Y}}^{2}.
Note that
\mathrm{TSS} = \mathrm{ESS} + \mathrm{RSS} .
1  | TSS(y)
 | 
y | 
 Numeric vector of length   | 
Returns the total sum of squares ≤ft( \mathrm{TSS} \right).
Ivan Jacob Agaloos Pesigan
Wikipedia: Residual Sum of Squares
Wikipedia: Explained Sum of Squares
Wikipedia: Total Sum of Squares
Wikipedia: Coefficient of Determination
Other sum of squares functions: 
.ESS(),
.RSS(),
ESS(),
RSS()
1 2  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.