Hello,
I'm using the R-2.13.1 version in Windows and I'm trying to do a robust
Pca
with the following:
x<-matrix(0.5,30,30)
library("rrcov")
y<-PcaCov(x)
The following error occurs:
Error: diff(sv)<0 ist not all TRUE
The same error occurs with the other functions. What does this mean and how
can I perform the robust PCA with these functions by using a quadratic
matrix as input?
Thanks in advance,
Albina.
--
View this message in context:
http://r.789695.n4.nabble.com/Package-rrcov-functions-PcaCov-PcaHubert-PcaGrid-tp3664644p3664644.html
Sent from the R help mailing list archive at Nabble.com.
Mark Difford
2011-Jul-13 13:04 UTC
[R] Package rrcov, functions PcaCov, PcaHubert, PcaGrid
On Jul 13, 2011; 12:03pm Albina wrote:> Error: diff(sv)<0 ist not all TRUE > ... . >snip< > The same error occurs with the other functions. What does this mean and > how can I perform the robust > PCA with these functions by using a quadratic matrix as input?Albina, You at least need to feed it something sensible. Look at your matrix: x<-matrix(0.5,30,30) x Try the following: x <- rmultinom(30, size = 30, prob=rep(c(0.1,0.2,0.8), 30)) PcaCov(x) Regards, Mark. ----- Mark Difford (Ph.D.) Research Associate Botany Department Nelson Mandela Metropolitan University Port Elizabeth, South Africa -- View this message in context: http://r.789695.n4.nabble.com/Package-rrcov-functions-PcaCov-PcaHubert-PcaGrid-tp3664644p3664961.html Sent from the R help mailing list archive at Nabble.com.
Ok, thank you Mark. I also found out, that it is not a good idea to perform a Pca with the equal numbers of observation and variables. It is preferable to have much more observations. Regards, Albina. -- View this message in context: http://r.789695.n4.nabble.com/Package-rrcov-functions-PcaCov-PcaHubert-PcaGrid-tp3664644p3665259.html Sent from the R help mailing list archive at Nabble.com.