Hi, I have a dataset of dimensions 50 x 15000, and tried to use princomp or prcomp on this dataset with 15000 columns as variables, but it seems that the 2 functions can;t handle this large number of columns, anyone has nay suggestions to get around this? Thanks --------------------------------- [[alternate HTML version deleted]]
On Fri, 25 Apr 2003, array chip wrote:> Hi, I have a dataset of dimensions 50 x 15000, and tried to use princomp > or prcomp on this dataset with 15000 columns as variables, but it seems > that the 2 functions can;t handle this large number of columns, anyone > has nay suggestions to get around this? ThanksWhich version of R? In the current version (1.7.0) princomp will complain if there are more columns than rows, but prcomp will work. (It ran for me in a few seconds on a synthetic dataset of that size.) -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
What about trying a sub-set of the data? Regards, Andrew C. Ward CAPE Centre Department of Chemical Engineering The University of Queensland Brisbane Qld 4072 Australia andreww at cheque.uq.edu.au On Saturday, April 26, 2003 10:44 AM, array chip [SMTP:arrayprofile at yahoo.com] wrote:> Hi, I have a dataset of dimensions 50 x 15000, and tried to use > princomp or prcomp on this dataset with 15000 columns as > variables, but it seems that the 2 functions can;t handle this > large number of columns, anyone has nay suggestions to get > around this? Thanks > > > --------------------------------- > > > [[alternate HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Hello, I tried to compute a PCA of values derived from satellite imagery but with princomp I get the following output:> pca.late <- princomp(late, na.action=na.fail)Error in cov.wt(z) : x must contain finite values only> the datasets are values from satellite imagery, therfore I assume they are finite. But if not is there a way to minimize the decimal place? I tried prccomp as well but I don't understand this output at all and I can't add "na.action=na.pass" what I thought could be the problem. pcalate<-prcomp(late,scale=T) Error in svd(x, nu = 0) : NA/NaN/Inf in foreign function call (arg 1) any idea how to fix it? thanks in advance, cheers Martin -- Martin Wegmann Department of Animal Ecology and Tropical Biology Zoology III, Biocenter Am Hubland 97074 W?rzburg Germany 0931/888-4378 wegmann at biozentrum.uni-wuerzburg.de m.wegmann at web.de