CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Intermediate Regression in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de 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
Modifier et exécuter le code