# Confirming SSR, SSE, and SST using matrix in R

[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

**ALSTAT R Blog**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

The codes below was done in our regression laboratory class. Here, we run first the data in SPSS, and take the ANOVA output where we can find the computed values of SSR, SSE, and SST.

ANOVA^{b} | ||||||

Model | Sum of Squares | df | Mean Square | F | Sig. | |

1 | Regression | 640267.552 | 1 | 640267.552 | 9.822 | .004 ^{a} |

Residual | 1825213.815 | 28 | 65186.208 | |||

Total | 2465481.367 | 29 | ||||

a. Predictors: (Constant), Length of Service | ||||||

b. Dependent Variable: Monthly Salary |

To

**leave a comment**for the author, please follow the link and comment on their blog:**ALSTAT R Blog**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.