Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この種の質問をして申し訳ありません(おそらく答えは明らかですが、もちろん私は知りません):)
私はpcamatlabで関数を使用しています。最初のスコアがどの変数から計算されるかを知る方法はありますか?
pca
ありがとう!
の場合[coeff,scores] = pca(X);、最初の主成分の各変数の重みは、
[coeff,scores] = pca(X);
coeff(:,1)
すべての変数はすべての主成分の計算に使用されます (したがって、coeffは正方行列です) が、一部の変数の最終的な寄与は非常に小さい場合があります。大きな貢献者を見つけるには、find(coeff(:,1)>THRESH).
coeff
find(coeff(:,1)>THRESH)