Vincent Miceli
5/13/2020
-80.41 + .44(gestation) - 3.33(parity) - .01(age) + 1.15(height) + .05(weight) - 8.40(smoke)
Gestation has a positive slope, and age has nearly 0 slope but slightly negative.
Adding new variables often changes the regression line, resulting in new intercepts and coefficients.
point_1 <- 120
pred_1 <- -80.41 + .44 * 284 - 3.33 * 0 - .01 * 27 + 1.15 * 62 + .05 * 100 - 8.40 * 0
e <- abs(point_1 - pred_1)
## [1] 0.58
r2 <- 1 - (249.28 / 332.57)
adj_r2 <- 1 - ((1 - r2) * (1236 - 1) / (1236 - 6 - 1))
r2 adj_r2
## [1] 0.2504435
## [1] 0.2467842