1. 학습
  2. /
  3. 강의
  4. /
  5. Modeling with Data in the Tidyverse

Connected

연습 문제

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.

지침 1/2

undefined XP
    1
    2
  • Using the mutate() function from dplyr, create a new column log10_size and assign it to house_prices_2 by applying a log10() transformation to sqft_living.