[R] R gnome and lda: found the difference

Agustin Lobo alobo at ija.csic.es
Fri Feb 22 13:25:00 CET 2002


Saving lda.default as text files from within gui="none" and from within
gui="gnome" 
and comparing afterwards with diff, I get:

alobo at humboldt:> diff lda.default.gnome.txt lda.default.nognome.txt
1c1
< function (x, grouping, prior = proportions, tol = 1, method =
c("moment",
---
> function (x, grouping, prior = proportions, tol = 1e-04, method =
c("moment",
61c61
<             if (all(abs(w - w0) < 0,01))
---
>             if (all(abs(w - w0) < 0.01))
109c109
<         dist <- 0 * dist - matrix(log(prior), n, ng, byrow = TRUE)
---
>         dist <- 0.5 * dist - matrix(log(prior), n, ng, byrow = TRUE)

It's clear then that R with the gnome gui uses a different copy
of lda.default, 
but the output of .path.package is identical:
> .path.package()
[1] "/usr/local/lib/R/library/MASS"  "/usr/local/lib/R/library/ctest"
[3] "/usr/local/lib/R/library/base" 

I don't think I can go further on my own, is this something that I should
submit as a bug?

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es






-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list