[R] PCA : Error in eigen(cv,

From: Tanya Yatsunenko <yata25_at_gmail.com>
Date: Mon, 30 Jun 2008 21:08:31 -0500


Hi all,

I am doing bootstrap on a distance matrix, in which samples have been drawn with replacement. After that I do PCA on a resulted matrix, and these 2 steps are repeated 1000 times.

pca(x) is a vector where I wanted to store all 1000 PCAs; and x is from 1 to 1000
SampleD is a new matrix after resampling;

I am getting the following error message, which I don't understand: ....
+pca(x)<-princomp(SampleD[i,j])
+ }

Error in eigen(cv, symmetric = TRUE) : infinite or missing values in 'x'

Should I maybe not use a vector, but matrix instead? Thanks!

-- 
Tanya.


	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 01 Jul 2008 - 02:12:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Jul 2008 - 17:31:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive