[R] Help about princomp

Christophe Bonenfant bonenfan at biomserv.univ-lyon1.fr
Mon Apr 23 11:58:19 CEST 2007


Hi Annina,

You may use the dudi.pca function in the ade4 package.

PCA <- dudi.pca(your_data, scale = FALSE, scan = FALSE)
# to get scores

PCA$li

and you're done. Maybe have a look at ?dudi.pca

Christophe


annina a écrit :
> Hello,
> I have a problem with the princomp method, it seems stupid but I don't know
> how to handle it.
> I have a dataset with some regular data and some outliers. I want to
> calculate a PCA on the regular data and get the scores for all data,
> including the outliers. Is this possible on R? 
> Thank you for helping!!!

-- 
===================================================

*Christophe BONENFANT*

 UMR CNRS 5558,
 Laboratoire de Biométrie et Biologie Evolutive
 Université Claude Bernard Lyon 1
 43, Boulevard du 11 Novembre 1918
 F-69622 Villeurbanne cedex, FRANCE

Phone : (+33) 8 72 20 98 73
Courriel/E-mail: bonenfan[at]biomserv[dot]univ-lyon1[dot]fr

        _(~)_
         )"(
        (@_@)
   /-----) (    Comtois, rends-toi ! Nenni ma foi !
  / |    | |
 * / \`--/ \
    ~~   ~~
"Error 404 - Brain not found"...



More information about the R-help mailing list