Principal Component Scores
DESCRIPTION:
Returns a matrix of the scores for the principal components.
USAGE:
predict.princomp(object, newdata=NULL)
REQUIRED ARGUMENTS:
- object
-
object of class
"princomp"
.
OPTIONAL ARGUMENTS:
- newdata
-
matrix or data frame of numeric data.
The column names must include the variables used to compute
object
.
VALUE:
matrix of principal component scores.
DETAILS:
This is the
"princomp"
method for the generic function
predict
.
SEE ALSO:
,
.
EXAMPLES:
wafer.pc <- princomp(~pre.mean + post.mean + pre.dev + post.dev,
data=wafer)
hyp.data <- data.frame(pre.mean=c(2,3), post.mean=c(2,3),
post.dev=c(.2,.3), pre.dev=c(.1,.2))
predict(wafer.pc, hyp.data)