Aan de slagGa gratis aan de slag

Parallel slopes model

Let's now fit a "parallel slopes" model with the numerical explanatory/predictor variable log10_size and the categorical, in this case binary, variable waterfront. The visualization corresponding to this model is below:

Deze oefening maakt deel uit van de cursus

Modeling with Data in the Tidyverse

Cursus bekijken

Oefeninstructies

Fit a multiple regression of log10_price using log10_size and waterfront as the predictors. Recall that the data frame that contains these variables is house_prices.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Fit model
model_price_4 <- lm(___, 
                    data = ___)

# Get regression table
get_regression_table(model_price_4)
Code bewerken en uitvoeren