Agustin Lobo
2001-Dec-20 10:22 UTC
[R] conflicting results on NA in a qda predicted object:
Dear list, (I've not upgraded to R1.4 yet) I have the following $class component in a predict.qda object:> unique(mod23S.qda.pred$class)[1] 12 17 8 10 4 9 5 13 14 19 20 15 6 3 7 1 23 11 18 21 16 2 22 NA Levels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Nevertheless, when I try to identify the individual(s) with NA, I get:> any(is.na(mod23S.qda.pred$class))[1] FALSE and> mod23S.qda.pred$class[is.na(mod23S.qda.pred$class)]factor(0) Levels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 So, actually, is there a NA value in mod23S.qda.pred$class or not? (screening by eye it`s impossible: length(mod23S.qda.pred$class) is 26375 ) 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian Ripley
2001-Dec-20 10:29 UTC
[R] conflicting results on NA in a qda predicted object:
This is a factor. You have to be careful with NAs in factors (and 1.4.0 is different there as it happens). Nevertheless, there is no way to reproduce this from what you have given. Check that the class really is "factor", and then unclass it to see what the codes actually are. One or more of them should be NA from what you have given. On Thu, 20 Dec 2001, Agustin Lobo wrote:> > Dear list, > > (I've not upgraded to R1.4 yet) > > I have the following $class component in a predict.qda object: > > unique(mod23S.qda.pred$class) > [1] 12 17 8 10 4 9 5 13 14 19 20 15 6 3 7 1 23 11 18 21 16 2 22 NA > Levels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 > > Nevertheless, when I try to identify the individual(s) with NA, I get: > > any(is.na(mod23S.qda.pred$class)) > [1] FALSE > > and > > > mod23S.qda.pred$class[is.na(mod23S.qda.pred$class)] > factor(0) > Levels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 > > So, actually, is there a NA value in mod23S.qda.pred$class or not? > > (screening by eye it`s impossible: > length(mod23S.qda.pred$class) is 26375 ) > > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello, I use function "svm" (interface to libsvm) from package e1071. It works just fine. And I may predict with function "predict" and svm model trained by function "svm". What I need is moving results of svm training to another application (non-R) and perform prediction there. But function "svm" returns list of support vectors only and doesn't return coefficients of separating hyperplane (w). So, the question is how to use results of svm training to write (in other language) prediction function for linear and nonlinear cases? Thanks, Alexander. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Friedrich.Leisch@ci.tuwien.ac.at
2001-Dec-20 13:35 UTC
[R] Problems with update.packages() in V 1.4.0 on W2K
Hmm, if you tell us WHAT KIND OF TROUBLES you experience it might be easier for us to help you ... fritz>>>>> On Thu, 20 Dec 2001 08:11:00 -0600, >>>>> Kenneth Cabrera (KC) wrote:> Hello dear R fans! > I got a trouble with update.packages() with the version 1.4.0 on > windows 2000. > I make already the change in ..\modules directory. > I rename internet.dll to internetold.dll and I > rename internet2.dll to internet.dll > My internet conexion has a proxy. > In the version 1.3.1 works everything fine! > Thank you for your help. > Kenneth > P.S. I download the a precompiled version of R 1.4.0 for windows from > http://www.stats.ox.ac.uk/pub/bdr/RWin/Rpre/rw1040*.zip > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Kenneth Cabrera
2001-Dec-20 14:11 UTC
[R] Problems with update.packages() in V 1.4.0 on W2K
Hello dear R fans! I got a trouble with update.packages() with the version 1.4.0 on windows 2000. I make already the change in ..\modules directory. I rename internet.dll to internetold.dll and I rename internet2.dll to internet.dll My internet conexion has a proxy. In the version 1.3.1 works everything fine! Thank you for your help. Kenneth P.S. I download the a precompiled version of R 1.4.0 for windows from http://www.stats.ox.ac.uk/pub/bdr/RWin/Rpre/rw1040*.zip -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._