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

Drawing diagnostic plots

It's time for you to draw these diagnostic plots yourself. Let's go back to the Taiwan real estate dataset and the model of house prices versus number of convenience stores.

Recall that autoplot() lets you specify which diagnostic plots you are interested in.

  • 1 residuals vs. fitted values
  • 2 Q-Q plot
  • 3 scale-location

mdl_price_vs_conv is available, and ggplot2 and ggfortify are loaded.

Bu egzersiz

Introduction to Regression in R

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

Egzersiz talimatları

  • Plot the three diagnostic plots (numbered 1 to 3) for mdl_price_vs_conv. Use a layout of three rows and one column.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Plot the three diagnostics for mdl_price_vs_conv
___
Kodu Düzenle ve Çalıştır