R gnome and lda: found the difference
It's a locale problem. I can reproduce this bug by relaunching my GNOME session with the Spanish locale. Numerical values are getting mangled because, in Spanish, decimals are represented with "," and (I'm guessing after a quick look at gnumeric) scientific notation requires a "+" or "-" prefix. Please submit a bug report. Thank you for your patience. Martyn
On 22-Feb-2002 Agustin Lobo wrote:
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
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._