Dear R-users How can I get the eigenvalues out of an lda analysis? thanks a lot christoph -- Christoph Lehmann <christoph.lehmann at gmx.ch>
On Tue, 3 Jun 2003, Christoph Lehmann wrote:> How can I get the eigenvalues out of an lda analysis?It uses singular values not eigenvalues: see ?lda for a description of the output, and the print method for one way to use them. -- 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
>On Tue, 3 Jun 2003, Christoph Lehmann wrote: > >> How can I get the eigenvalues out of an lda analysis? > >It uses singular values not eigenvalues: see ?lda for a description of the >output, and the print method for one way to use them.the function discrimin ofthe ade4 package performs discriminat analysis with eigen and so produces eigenvalues ($eig) -- St?phane DRAY --------------------------------------------------------------- Biom?trie et Biologie ?volutive - Equipe "?cologie Statistique" Universite Lyon 1 - Bat 711 - 69622 Villeurbanne CEDEX - France Tel : 04 72 43 27 56 Fax : 04 72 43 13 88 04 72 43 27 57 E-mail : dray at biomserv.univ-lyon1.fr --------------------------------------------------------------- Web http://www.steph280.freesurf.fr/
let's compare lda and discrimin (ade4) using the iris data: with lda I get:> lda1 <- lda(iris[,1:4],iris[,5]) > lda1$svd[1] 48.642644 4.579983 with discrimin:> discrimin1 <- discrimin(dudi.pca(iris[,1:4],scan=F),iris[,5],scan=F) > discrimin1eigen values: 0.9699 0.222 so where and how is the relationship? thanks christoph On Tue, 2003-06-03 at 13:01, Prof Brian Ripley wrote:> On Tue, 3 Jun 2003, Stephane Dray wrote: > > > >On Tue, 3 Jun 2003, Christoph Lehmann wrote: > > > > > >> How can I get the eigenvalues out of an lda analysis? > > > > > >It uses singular values not eigenvalues: see ?lda for a description of the > > >output, and the print method for one way to use them. > > > > the function discrimin ofthe ade4 package performs discriminat > > analysis with eigen and so produces eigenvalues ($eig) > > For those for whom squaring is too difficult, that is. > Why recommend software using an inferior algorithm to avoid squaring?-- Christoph Lehmann <christoph.lehmann at gmx.ch>