The R Project SVN R

Rev

Rev 27474 | Rev 29861 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27474 Rev 27968
Line 53... Line 53...
53
  (centered and scaled) data matrix, not by using \code{eigen} on the
53
  (centered and scaled) data matrix, not by using \code{eigen} on the
54
  covariance matrix.  This
54
  covariance matrix.  This
55
  is generally the preferred method for numerical accuracy.  The
55
  is generally the preferred method for numerical accuracy.  The
56
  \code{print} method for the these objects prints the results in a nice
56
  \code{print} method for the these objects prints the results in a nice
57
  format and the \code{plot} method produces a scree plot.
57
  format and the \code{plot} method produces a scree plot.
58
 
-
 
59
  If the input has more variables than units then \code{\link{La.svd}}
-
 
60
  is used, and the results may differ in sign from versions prior to 1.7.0.
-
 
61
}
58
}
62
\note{
59
\note{
63
  The signs of the columns of the rotation matrix are arbitrary, and
60
  The signs of the columns of the rotation matrix are arbitrary, and
64
  so may differ between different programs for PCA, and even between
61
  so may differ between different programs for PCA, and even between
65
  different builds of \R.
62
  different builds of \R.
Line 74... Line 71...
74
 
71
 
75
  Venables, W. N. and B. D. Ripley (1997, 9)
72
  Venables, W. N. and B. D. Ripley (1997, 9)
76
  \emph{Modern Applied Statistics with S-PLUS}, Springer-Verlag.
73
  \emph{Modern Applied Statistics with S-PLUS}, Springer-Verlag.
77
}
74
}
78
\seealso{
75
\seealso{
-
 
76
  \code{\link{biplot.prcomp}},
79
  \code{\link{princomp}}, \code{\link{cor}}, \code{\link{cov}},
77
  \code{\link{princomp}}, \code{\link{cor}}, \code{\link{cov}},
80
  \code{\link{svd}}, \code{\link{eigen}}.
78
  \code{\link{svd}}, \code{\link{eigen}}.
81
}
79
}
82
\examples{
80
\examples{
83
## the variances of the variables in the
81
## the variances of the variables in the
Line 85... Line 83...
85
data(USArrests)
83
data(USArrests)
86
prcomp(USArrests)  # inappropriate
84
prcomp(USArrests)  # inappropriate
87
prcomp(USArrests, scale = TRUE)
85
prcomp(USArrests, scale = TRUE)
88
plot(prcomp(USArrests))
86
plot(prcomp(USArrests))
89
summary(prcomp(USArrests, scale = TRUE))
87
summary(prcomp(USArrests, scale = TRUE))
-
 
88
biplot(prcomp(USArrests, scale = TRUE))
90
}
89
}
91
\keyword{multivariate}
90
\keyword{multivariate}