Re: [R] Using napredict in prcomp

2009-03-11 Thread Alain Paquette
Thanks for the answer. Yes indeed, napredict only puts NAs in the right places (ie where na.action was used). Anyway I realize that I'm much better off dealing with the missing values prior to the PCA, and R offers many options for that. Thanks Alain Prof Brian Ripley a écrit : On Tue, 10 M

Re: [R] Using napredict in prcomp

2009-03-10 Thread Prof Brian Ripley
On Tue, 10 Mar 2009, Alain Paquette wrote: Hello all, I wish to compute site scores using PCA (prcomp) on a matrix with missing values, for example: DrainSlopeOrgL a41NA b2.5396 c6845 d3912 e3164 ... Where a,b... are site

[R] Using napredict in prcomp

2009-03-10 Thread Alain Paquette
Hello all, I wish to compute site scores using PCA (prcomp) on a matrix with missing values, for example: DrainSlopeOrgL a41NA b2.5396 c6845 d3912 e3164 ... Where a,b... are sites. The command > pca<-prcomp(~ Drain + Slope