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@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.

Reply via email to