Re: [R] Fwd: NaN-result from fuzzy_inference (package sets) with certain input

2013-05-16 Thread David Meyer
- function(df){ gset_defuzzify(fuzzy_inference(system, list(depth = df[depth], velocity = df[velocity])),centroid) } apply(test_df,1,fuzzy_result) /Johannes On Thu, May 9, 2013 at 12:35 AM, David Meyer david.me...@wu.ac.at mailto:david.me...@wu.ac.at wrote: It's because you restricted

Re: [R] color query in mosaic in package vcd

2013-02-08 Thread David Meyer
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Priv.-Doz. Dr. David Meyer Department of Information

Re: [R] standardized residuals / adjusted residuals

2012-11-13 Thread David Meyer
If I call chisq.test(x)$residuals ; I get the *standardized* residuals (even though it's called residuals) chisq.test(x)$stdres ; I get the *adjusted* standardized residuals (even though it's called stdres) Is this correct? I think, yes - as documented on the man page. Best David

Re: [R] write.matrix.csr data conversion

2012-11-06 Thread David Meyer
/library/e1071/html/read.matrix.csr.html says David Meyer (based on C/C++-code by Chih-Chung Chang and Chih-Jen Lin) is there any chance that you might consider replacing the R code with the original C/C++? Thanks a lot! * David Meyer qnivq.zr...@jh.np.ng [2012-08-27 22:57:17 +0200]: done

Re: [R] boxplot - bclust

2012-09-04 Thread David Meyer
These are warnings and I think that you can safely ignore them. It looks like the code should replace the line if (x$datamean) with something like if (!is.null(x$datamean)) Yes, I think so too - thanks for reporting this. David __

Re: [R] write.matrix.csr data conversion

2012-08-29 Thread David Meyer
Yes, it seems that Prof Meyer hasn't pushed the changes to R forge yet. I now did. (There are no other repositories). David __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] write.matrix.csr data conversion

2012-08-27 Thread David Meyer
, library(e1071) '0' and '1' are converted to factors which probably show up as 1 and 2 in the file. sounds reasonable, thanks. David, could you please add an option `fac' to `write.matrix.csr', similar to `read.matrix.csr' which already accepts `fac'? thanks! -- Priv.-Doz. Dr. David Meyer

Re: [R] SparseM buglet

2012-08-26 Thread David Meyer
Thanks to all for routing this to me - fixed upstream. David Original Message Subject: forwarded message from Roger Koenker Date: Sat, 25 Aug 2012 17:12:04 +0200 From: Kurt Hornik kurt.hor...@wu.ac.at Reply-To: kurt.hor...@wu.ac.at To: David Meyer david.me...@wu.ac.at

Re: [R] predict.naiveBayes() bug in e1071 package

2012-02-08 Thread David Meyer
/ sum(L) # this is what is returned you can instead use sapply(L, function(lp) {1 / sum(exp(L - lp))}) the above comes from the following equality: x / (x + y + z) = 1 / (1 + exp(log(y) - log(x)) + exp(log(z) - log(x))) Best wishes, /Ali Tofigh -- Priv.-Doz. Dr. David Meyer Department

Re: [R] The Sets package and element equality test

2011-10-09 Thread David Meyer
' to vector of type 'character' So far, I don't know how to work around this latter issue. Thanks again for the package and your help. Regards Johnny On Sat, Oct 8, 2011 at 2:40 PM, David Meyer mey...@technikum-wien.at mailto:mey...@technikum-wien.at wrote: Dear Johnny

[R] The Sets package and element equality test

2011-10-08 Thread David Meyer
, but I don't understand. -- Priv.-Doz. Dr. David Meyer Institut für Wirtschaftsinformatik Fachhochschule Technikum Wien Höchstädtplatz 5, 1200 Wien T: +43 1 333 40 77-394 F: +43 1 333 40 77-99 394 E: david.me...@technikum-wien.at I: www.technikum-wien.at

Re: [R] probabilities in svm output in e1071 package

2010-05-05 Thread David Meyer
? -- Sincerely, Changbin -- Changbin Du DOE Joint Genome Institute Bldg 400 Rm 457 2800 Mitchell Dr Walnut Creet, CA 94598 Phone: 925-927-2856 -- Priv.-Doz. Dr. David Meyer Department of Information Systems and Operations WU Wirtschaftsuniversität Wien Vienna University of Economics

Re: [R] library sets: A EMPTY does not work; gset_intersection(A,EMPTY) works

2010-04-11 Thread David Meyer
: Peter Ehlers [mailto:ehl...@ucalgary.ca] Sent: Wednesday, March 31, 2010 2:03 PM To: Czerminski, Ryszard Cc: R-help@r-project.org; David Meyer Subject: Re: [R] library sets: A EMPTY does not work; gset_intersection(A,EMPTY) works Ryszard, You've made me take a closer look and now I do think

Re: [R] library sets: A EMPTY does not work; gset_intersection(A,EMPTY) works

2010-04-07 Thread David Meyer
. -Original Message- From: David Meyer [mailto:david.me...@wu.ac.at] Sent: Tuesday, April 06, 2010 6:03 PM To: Czerminski, Ryszard Cc: Peter Ehlers; R-help@R-project.org; David Meyer Subject: Re: [R] library sets: A EMPTY does not work; gset_intersection(A,EMPTY) works This is rather by chance

Re: [R] library sets: A EMPTY does not work; gset_intersection(A,EMPTY) works

2010-04-07 Thread David Meyer
or take any action in reliance on it. Any unauthorized use or disclosure of the contents of this message is not permitted and may be unlawful. -Original Message- From: David Meyer [mailto:david.me...@wu.ac.at] Sent: Wednesday, April 07, 2010 8:25 AM To: Czerminski, Ryszard Cc: Peter

Re: [R] library sets: A EMPTY does not work; gset_intersection(A,EMPTY) works

2010-04-06 Thread David Meyer
...@ucalgary.ca] Sent: Wednesday, March 31, 2010 2:03 PM To: Czerminski, Ryszard Cc: R-help@r-project.org; David Meyer Subject: Re: [R] library sets: A EMPTY does not work; gset_intersection(A,EMPTY) works Ryszard, You've made me take a closer look and now I do think that you've found a bug. After

Re: [R] nu-SVM crashes in e1071

2010-03-04 Thread David Meyer
like you send an *.rda file of your soil_unit data offline and I can try, but otherwise I guess you're on your own? What if you remove some of the columns of your matrix? Will this eventually work? -steve -- Priv.-Doz. Dr. David Meyer Department of Information Systems and Operations WU

[R] multiclass SVM (e1071 package): number of estimated models

2009-09-28 Thread David Meyer
Dear John, there *are* indeed 3 classifiers trained, as you can see from predict(model, iris, decision.values = TRUE) However, the coefficients are stored in a compressed format -- see svminternals.txt in the /doc subdirectory. Best David - I run multiclass SVM for iris

[R] how to get the signed distance in SVM?

2009-01-15 Thread David Meyer
Dear Qing, look at the file svminternals.txt in the /doc subdirectory of the installed e1071 package (or inst/doc in the source package), that should help. David In the svm() function in the package e1071, is there anyway to get the signed distance of a sample point to the separating

Re: [R] write.matrix.csr(e1071) bug

2008-10-24 Thread David Meyer
Peter: Yes, this is a bug. The line if ([EMAIL PROTECTED] = nrow(x)) should actually read if (([EMAIL PROTECTED] = length([EMAIL PROTECTED])) ([EMAIL PROTECTED] [EMAIL PROTECTED] + 1])) -- fixed upstream. Thanks David Hello, The write.matrix.csr() function of the e1071

[R] adjusting textsize and spacing in mosaic (vcd package)

2008-09-28 Thread David Meyer
Richard, How do I change the size of the text on the legend scale? This should work with `fontsize', but doesn't which is a bug (fixed in the next release). Also, is there a way to change all the font sizes at once? Not yet, but this is a good suggestion. Thanks David

Re: [R] Extract naiveBayes details

2008-06-27 Thread David Meyer
Stephan: the Naive Bayes model consists of several tables, one for each (categorical) predictor. Using m = naiveBayes( ... ) m$tables you will get (as the help page says): tables: A list of tables, one for each predictor variable. For each categorical variable a table giving, for

[R] problems in cross validation of SVM in pakage e1071

2007-10-28 Thread David Meyer
Dear Nan Qiao, the accuracies are in percent (so times 100). Best David Hi: I am a newer in using R for data mining, and find the e1071 pakage an excellent tool in doing data mining work! what frustrated me recently is that when I using the function svm and using

[R] [R-pkgs] upgrade: relations

2007-10-18 Thread David Meyer
Dear useRs, a new version of the 'relations' package has appeared on CRAN. New features include: o support for fuzzy relations added o support for sets moved to separate 'sets' package o new SD fitters for the S (symmetric) and M (matches) families o fitters for Cook-Seiford

[R] fontsize in mosaic plot lables

2007-09-24 Thread David Meyer
, margin = 0,gp_text=gpar(fontsize=20))(Titanic) What am I doing wrong? Thanx Herry -- Dr. David Meyer Department of Information Systems and Operations Vienna University of Economics and Business Administration Augasse 2-6, A-1090 Wien, Austria, Europe Tel: +43-1-313 36 4393 Fax: +43-1-313