[R] problems with lda , data included, can somebody test with the new version

Ko-Kang Kevin Wang kwan022 at stat.auckland.ac.nz
Wed Aug 6 12:50:42 CEST 2003

On Wed, 6 Aug 2003, Nicolaas Busscher wrote:

> enclosed a simple R script (and a data file, and the output) , with
> calls lda similar to the example with the iris data in the
> documentation. it is not working and i dont understand the error
> message. can anybody help me? i am using R 1.5.1 (2002.06.17) on
> debian woody stable. 
> I would like to avoid updating now, because i want to keep the system
> in "stable". can somebody test, if the newer version didnt have this
> problem ? thanks
> z<-lda(assignment ~ .,actaData,prior=prio,tol=1.0e-08)

Using the latest version, R 1.7.1, I get:
> z
lda.formula(assignment ~ ., data = actaData, prior = prio, tol = 1e-08)

Prior probabilities of groups:
  5   6 
0.5 0.5 

Group means:
  diagonal.moment cluster.shade histogram.kurtosis
5        84.94982     -11989.17         -0.1116342
6       138.31495     -18892.15         -0.1205776

Coefficients of linear discriminants:
diagonal.moment    -1.575854e-03
cluster.shade      -1.209398e-04
histogram.kurtosis -2.028278e+02



"On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I am not able to rightly apprehend the
kind of confusion of ideas that could provoke such a question."

-- Charles Babbage (1791-1871) 
---- From Computer Stupidities: http://rinkworks.com/stupid/

Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz/~kwan022
Ph: 373-7599
    x88475 (City)
    x88480 (Tamaki)

More information about the R-help mailing list