[BioC] Correlation matrix and pca on matrix with NA values

James W. MacDonald jmacdon at med.umich.edu
Tue Apr 10 16:15:38 CEST 2007


Hi Daniel,

Daniel Brewer wrote:
> I have an expression matrix that contains NA values.  What is the best
> way to get:
> 1) prcomp()  (Exits with "Error in svd(x, nu = 0) : infinite or missing
> values in 'x'")
> 2) cor() (Exits with "Error in cor(exprs(Sperger)) : missing
> observations in cov/cor")
> to work with this type of matrix.

Take a look at the pcaMethods package.

Best,

Jim


> 
> Many Thanks
> 
> Dan
> 


-- 
James W. MacDonald, M.S.
Biostatistician
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623


**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.



More information about the Bioconductor mailing list