1. Learn
  2. /
  3. Courses
  4. /
  5. Modeling with Data in the Tidyverse

Connected

Exercise

Comparing the R-squared of two models

Let's now compute \(R^2\) for the one numerical and one categorical explanatory/predictor variable model you fit in the Chapter 3, price as a function of size and whether the house had a view of the waterfront, and compare its \(R^2\) with the one you just computed.

Instructions 1/2

undefined XP
    1
    2

Compute \(R^2\) for model_price_4.