Aan de slagGa gratis aan de slag

Predicting house price with waterfront

You just saw that houses with a view of the waterfront tend to be much more expensive. But by how much? Let's compute group means of log10_price, convert them back to dollar units, and compare!

The variable log10_price has already been added to house_prices for you.

Deze oefening maakt deel uit van de cursus

Modeling with Data in the Tidyverse

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Calculate stats
house_prices %>%
  group_by(___) %>%
  summarize(mean_log10_price = ___, n = ___)
  
Code bewerken en uitvoeren