supplr {multiv}R Documentation

Supplementary Rows in Correspondence Analysis

Description

Using the results of a correspondence analysis, project new rows into the factor space.

Usage

supplr(a, ca.res)

Arguments

a data matrix to be projected. Must have same number of columns as matrix which was initially input to the correspondence analysis.
ca.res the output of a correspondence analysis. The following components of this object are used: evals, rproj and cproj.

Value

a list containing the matrix proj, projections of the rows of a on the correspondence analysis factors.

References

See function ca.

See Also

Correspondence analysis: ca. Supplementary rows and columns: supplr, supplc. Initial data coding: flou, logique. Other functions producing objects of class reddim: pca, sammon. Other related functions: prcomp, cancor, cmdscale.

Examples

data(USArrests)
USArrests <- as.matrix(USArrests)
corr <- ca(USArrests[1:25,])
newproj <- supplc(USArrests[26:50,], corr)
# plot of first and second factors, and of supplementary columns:
plot(corr$cproj[,1], corr$cproj[,2],type="n")
text(corr$cproj[,1], corr$cproj[,2])
points(newproj$proj[,1], newproj$proj[,2], col=2)