Get startedGet started for free

Predicting again

You've followed the prediction workflow several times now with different combinations of explanatory variables. Time to try it once more on the model with three explanatory variables. Here, you'll use the model with 3-way interactions, though the code is the same when using any of the three models from the previous exercise.

taiwan_real_estate and mdl_price_vs_all_3_way_inter are available; dplyr, tidyr and ggplot2 are loaded.

This exercise is part of the course

Intermediate Regression in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Make a grid of explanatory data
explanatory_data <- ___(
  # Set dist_to_mrt_m a seq from 0 to 80 by 10s, squared
  ___,
  # Set n_convenience to 0 to 10
  ___,
  # Set house_age_years to the unique values of that variable
  ___
)

# See the result
explanatory_data
Edit and Run Code