自分のデータセットでPCAとMCAを実装するためにFactoMineR
パッケージを使用しようとしています。FactoMineRのPCAサマリーのctr、距離、およびディメンションは正確に何ですか?
私はデータセットを持っていますが、最初のクリーンアップがほとんど行われていないので、私はPCA()
関数を適用しました。私は結果の要約を理解しようとしました。
library(reshape)
library(gridExtra)
library(gdata)
library(ggplot2)
library(ggbiplot)
library(FactoMineR)
x <- read.csv('cars.csv',stringsAsFactors = FALSE)
y <- na.omit(x)
y <- y[,c(-8,-9)]
s <- y[,-1]
rownames(s) <- make.names(y[,1], unique = TRUE)
res.pca <- PCA(s, quanti.sup = NULL, quali.sup=NULL,scale.unit = TRUE,ncp=2)
summary(res.pca)
これは私のコンソールでsummary(res.pca)
プリントアウトが
Call:
PCA(X = s, scale.unit = TRUE, ncp = 2, quanti.sup = NULL, quali.sup = NULL)
Eigenvalues
Dim.1 Dim.2 Dim.3 Dim.4 Dim.5 Dim.6
Variance 4.788 0.729 0.258 0.125 0.063 0.036
% of var. 79.804 12.144 4.308 2.086 1.053 0.605
Cumulative % of var. 79.804 91.948 96.256 98.342 99.395 100.000
Individuals (the 10 first)
Dist Dim.1 ctr cos2 Dim.2 ctr cos2
chevrolet.chevelle.malibu | 2.516 | 2.326 0.288 0.855 | -0.572 0.115 0.052 |
buick.skylark.320 | 3.307 | 3.206 0.548 0.940 | -0.683 0.163 0.043 |
plymouth.satellite | 2.915 | 2.670 0.380 0.839 | -0.994 0.346 0.116 |
amc.rebel.sst | 2.749 | 2.605 0.362 0.898 | -0.623 0.136 0.051 |
ford.torino | 2.908 | 2.600 0.360 0.799 | -1.094 0.419 0.141 |
ford.galaxie.500 | 4.578 | 4.401 1.032 0.924 | -1.011 0.358 0.049 |
chevrolet.impala | 5.210 | 4.920 1.289 0.892 | -1.368 0.655 0.069 |
plymouth.fury.iii | 5.144 | 4.836 1.246 0.884 | -1.537 0.827 0.089 |
pontiac.catalina | 5.165 | 4.910 1.285 0.904 | -1.041 0.379 0.041 |
amc.ambassador.dpl | 4.406 | 4.056 0.876 0.847 | -1.668 0.974 0.143 |
Variables
Dim.1 ctr cos2 Dim.2 ctr cos2
Cylinders | 0.942 18.543 0.888 | 0.127 2.200 0.016 |
Displacement | 0.971 19.672 0.942 | 0.093 1.177 0.009 |
Horsepower | 0.950 18.846 0.902 | -0.142 2.761 0.020 |
Weight | 0.941 18.499 0.886 | 0.244 8.185 0.060 |
MPG | -0.873 15.918 0.762 | -0.209 5.994 0.044 |
Acceleration | -0.639 8.522 0.408 | 0.762 79.683 0.581 |
私はこの概要からすべてを理解している間、私は何DIST、CTRを確認していないと、データ・ポイントに薄暗く
つまり何を意味するかですIndividuals (the 10 first)
Dist Dim.1 ctr cos2 Dim.2 ctr cos2
chevrolet.chevelle.malibu | 2.516 | 2.326 0.288 0.855 | -0.572 0.115 0.052 |
buick.skylark.320 | 3.307 | 3.206 0.548 0.940 | -0.683 0.163 0.043 |
plymouth.satellite | 2.915 | 2.670 0.380 0.839 | -0.994 0.346 0.116 |
amc.rebel.sst | 2.749 | 2.605 0.362 0.898 | -0.623 0.136 0.051 |