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

One model per category

The model you ran on the whole dataset fits some parts of the data better than others. It's worth taking a look at what happens when you run a linear model on different parts of the dataset separately, to see if each model agrees or disagrees with the others.

taiwan_real_estate is available; dplyr is loaded.

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

Intermediate Regression in R

ดูคอร์ส

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

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

# Filter for rows where house age is 0 to 15 years
taiwan_0_to_15 <- ___


# Filter for rows where house age is 15 to 30 years
taiwan_15_to_30 <- ___


# Filter for rows where house age is 30 to 45 years
taiwan_30_to_45 <- ___
แก้ไขและรันโค้ด