เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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:

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Modeling with Data in the Tidyverse

ดูคอร์ส

คำแนะนำการฝึกหัด

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.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

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

# Get regression table
get_regression_table(model_price_4)
แก้ไขและรันโค้ด