Skip to content

Finding the principal components

3 messages · dileep kunjaai, David L Carlson

#
Check the posting guidelines and give us a small reproducible example using
dput(). It is here
http://www.R-project.org/posting-guide.html

You say you want "PCs of a spatial data set (single variable)", but you must
mean something else. It sounds like your variables are highly correlated
with one another or you have more variables than cases. The function prcomp
also computes PCs but it uses singular value decomposition rather than
matrix inversion.

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352