The best model for forecasting happiness score
Call:
lm(formula = Ladderscore ~ LoggedGDPpercapita + Socialsupport +
Healthylifeexpectancy + Freedomtomakelifechoices + Perceptionsofcorruption +
Socialsupport:Healthylifeexpectancy, data = trainingdata60)
Residuals:
Min 1Q Median 3Q Max
-1.31629 -0.18122 0.04566 0.25957 0.98549
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 8.68881 4.21257 2.063 0.04224 *
LoggedGDPpercapita 0.14147 0.07617 1.857 0.06678 .
Socialsupport -11.27678 5.47277 -2.061 0.04244 *
Healthylifeexpectancy -0.15421 0.07135 -2.161 0.03353 *
Freedomtomakelifechoices 2.74804 0.57038 4.818 6.36e-06 ***
Perceptionsofcorruption -0.47263 0.34251 -1.380 0.17128
Socialsupport:Healthylifeexpectancy 0.24226 0.08866 2.732 0.00766 **
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.4681 on 84 degrees of freedom
Multiple R-squared: 0.8301, Adjusted R-squared: 0.818
F-statistic: 68.41 on 6 and 84 DF, p-value: < 2.2e-16