[R] principal component analysis for class variables
alain.guillet at uclouvain.be
Mon Aug 3 19:04:16 CEST 2009
The PCA doesn't work with class variables so the error is normal. You
should try to work with a discriminant factorial analysis (see
discrimin.coa in ade4).
> Dear Forum,
> I have a class variable 1 (populations A-E), and two other class variables,
> variable 2 and variable 3. What I want is to see if the combination of var 2
> and var 3, will give me a pattern that allows to distinguish populations.
> I found several packages like ade4, with pcaiv function and factoMineR. but
> there are not working. Using the ade4 package, when I try to build the pca:
> pca1 <- dudi.pca(D, scan = FALSE, nf = 2)
> Error in v * row.w : non-numeric argument to binary operator
> Does someone has suggestions?
Statistician and Computer Scientist
SMCS - Institut de statistique - Université catholique de Louvain
Voie du Roman Pays, 20
tel: +32 10 47 30 50
More information about the R-help