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

Number of PCs using scree plot

Now you will implement the elbow method relating to the change in the relative importance of the variance to choose the number of components. We will use the pca.state object containing the PCs of the state.x77 to implement this method.

Bu egzersiz

Multivariate Probability Distributions in R

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

Egzersiz talimatları

  • Use the screeplot() function to plot the relative importance of the variance explained by the eight PC's of the state.x77 dataset.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Draw screeplot
screeplot(___, type = "l")
grid()
Kodu Düzenle ve Çalıştır