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

Log10 transformation of house size

You just saw that the predictor variable sqft_living is right-skewed and hence a log base 10 transformation is warranted to unskew it. Just as we transformed the outcome variable price to create log10_price in the video, let's do the same for sqft_living.

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

Modeling with Data in the Tidyverse

ดูคอร์ส

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

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

# Load packages
library(moderndive)
library(dplyr)
library(ggplot2)

# Add log10_size
house_prices_2 <- house_prices %>%
  ___(___ = ___(___))
แก้ไขและรันโค้ด