Question

# The data file Demographics was used in a simple linear regression model where Unemployment Rate is...

The data file Demographics was used in a simple linear regression model where Unemployment Rate is the response variable and Cost of Living is the explanatory variable. You may refer to the previous two questions for the regression model if you wish. The anova function in R was used to obtain the breakdown of the sums of squares for the regression model. This is shown below: > anova(myreg)Analysis of Variance Table Response: Unemployment Df Sum Sq Mean Sq F value Pr(>F) Cost_of_living 1 32.44 32.439 7.9687 0.005515 ** Residuals 129 525.14 4.071 Based on the ANOVA table, what is R2 for the regression model?

Solution:

Given:

SSR = Sum of squares due to regression = 32.44

SSE = Sum of squares due to error ( Residual) = 525.14

Thus

SST = SSR + SSE

SST = 32.44 + 525.14

SST = 557.58

Source of variation df Sum of Squares Mean Square F-Statistic Pr(>F)
Cost of Living 1 32.44 32.439 7.96870 0.005515
Residual 129 525.14 4.071
Total 130 557.58

We have to find R2.

#### Earn Coins

Coins can be redeemed for fabulous gifts.