BaşlayınÜcretsiz Başlayın

Transformed model

As you saw in the previous chapter, transforming the variables can often transform a model from one where the technical conditions are violated to one where the technical conditions hold. When technical conditions hold, you are able to accurately interpret the inferential output. In the two models below, note how the standard errors and p-values change (although in both settings the p-value is significant).

Bu egzersiz

Inference for Linear Regression in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Run a linear regression on price versus bed for the LAhomes dataset, then tidy the output.
  • Do the same on log-transformed variables: log(price) versus log(bed).

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create a tidy model


# Create a tidy model using the log of both variables
Kodu Düzenle ve Çalıştır