[R] Random Forest classification

2016-04-11 Thread Jesús Para Fernández
Hi, To evaluate the partial influence of a factor with a random Forest, wich response is OK/NOK I�m using partialPlot, being the x axis the factor axis and the Y axis is between -1 and 1. What this -1 and 1 means? An example: https://www.dropbox.com/s/4b92lqxi3592r0d/Captura.JPG?dl=0

[R-es] Random Forest para clasificación

2016-04-11 Thread Jesús Para Fernández
Buenas, Cuando estoy haciendo un random Forest para clasificaci�n y hago el gr�fico partialPlot, siendo mi respuesta OK/NOK, me sale en el eje X el valor de la variable, pero en el eje Y me salen valores de entre -1 y 1. �Qu� significado tiene? Adjunto un ejemplo:

Re: [R] [FORGED] Re: [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Rolf Turner
On 12/04/16 14:45, Duncan Murdoch wrote: On 11/04/2016 10:18 PM, Bert Gunter wrote: "The documentation aims to be accurate, not necessarily clear." !!! I hope that is not the case! Accurate documentation that is confusing is not very useful. I don't think it is ever intentionally confusing,

Re: [R] [FORGED] Re: [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Rolf Turner
On 12/04/16 13:09, Duncan Murdoch wrote: The documentation aims to be accurate, not necessarily clear. Fortune nomination! cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Duncan Murdoch
On 11/04/2016 10:18 PM, Bert Gunter wrote: "The documentation aims to be accurate, not necessarily clear." !!! I hope that is not the case! Accurate documentation that is confusing is not very useful. I don't think it is ever intentionally confusing, but it is often concise to the point of

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Bert Gunter
"The documentation aims to be accurate, not necessarily clear." !!! I hope that is not the case! Accurate documentation that is confusing is not very useful. I understand that it is challenging to write docs that are both clear and accurate; but I hope that is always the goal. Cheers, Bert Bert

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Paulson, Ariel
Hi Duncan, That explains it, thanks! I rarely use as(), but had thought in this case, replacing identical(x, y) with identical(x, as(y,class(x))) could be an sapply-friendly way to iron out class differences -- then noticed the inexplicable result. But now I know about all.equal(). Thanks,

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Paulson, Ariel
​Perfect! Thanks, Ariel From: William Dunlap Sent: Monday, April 11, 2016 7:37 PM To: Paulson, Ariel Cc: Jeff Newmiller; Bert Gunter; r-help@r-project.org Subject: Re: [R] [FORGED] Re: identical() versus sapply() Use all.equal instead of

[R] Dissimilarity matrix and number clusters determination

2016-04-11 Thread Michael Artz
Hi, I already have a dissimilarity matrix and I am submitting the results to the elbow.obj method to get an optimal number of clusters. Am I reading the below output correctly that I should have 17 clusters? code: top150 <- sampleset[1:150,] {cluster1 <- daisy(top150 ,

[R-es] Package para Selección de Características en Series de Tiempo

2016-04-11 Thread Elkin Tabares
Buenas noches a la Comunidad R, Deseo hacer una consulta de si existe en R un paquete similar a bestgml, lasso y leaps, pero que sea para series de tiempo, la idea es estimar un modelo ARMAX y una Red Neuronal, la idea es seleccionar las mejores variables expplicativas, muchas gracias por su

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Duncan Murdoch
On 11/04/2016 8:25 PM, Paulson, Ariel wrote: Hi Jeff, We are splitting hairs because R is splitting hairs, and causing us problems. Integer and numeric are different R classes with different properties, mathematical relationships notwithstanding. For instance, the counterintuitive result:

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread William Dunlap via R-help
Use all.equal instead of identical if you want to gloss over integer/numeric class differences and minor floating point differences (and a host of others). Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Apr 11, 2016 at 5:25 PM, Paulson, Ariel wrote: > Hi Jeff, > > > We

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Paulson, Ariel
Hi Jeff, We are splitting hairs because R is splitting hairs, and causing us problems. Integer and numeric are different R classes with different properties, mathematical relationships notwithstanding. For instance, the counterintuitive result: > identical(as.integer(1), as.numeric(1))

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Jeff Newmiller
Hypothesis regarding the thought process: integer is a perfect subset of numeric, so why split hairs? -- Sent from my phone. Please excuse my brevity. On April 11, 2016 12:36:56 PM PDT, Bert Gunter wrote: >Indeed! > >Slightly simplified to emphasize your point: > >>

[R] Intro GAM and GAMM course: Singapore

2016-04-11 Thread Highland Statistics Ltd
There are 4 remaining seats on the following statistics course: Course: Introduction to GAM and GAMM with R When: 30 May-3 June 2016 Where: Tropical Marine Science Institute, National University of Singapore, Singapore Course website: http://highstat.com/statscourse.htm Course flyer:

Re: [R] Adding Two-Headed Arrow in map legend

2016-04-11 Thread Jim Lemon
Hi Milu, I just realized that by "the bottom of the map" you may mean "beneath the map", in which case you should use: par(xpd=TRUE) arrows(...) par(xpd=FALSE) Jim On Mon, Apr 11, 2016 at 11:50 PM, Miluji Sb wrote: > Dear David, > > Thank you very much for your replies! I

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Bert Gunter
Indeed! Slightly simplified to emphasize your point: > class(as(1:2,"numeric")) [1] "integer" > class(as.numeric(1:2)) [1] "numeric" whereas in ?as it says: "Methods are pre-defined for coercing any object to one of the basic datatypes. For example, as(x, "numeric") uses the existing

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-11 Thread Paulson, Ariel
Ok, I see the difference between 1 and 1:2, I'll just leave it as one of those "only in R" things. But it seems then, that as.numeric() should guarantee a FALSE outcome, yet it does not. To build on what Rolf pointed out, I would really love for someone to explain this one: > str(1) num 1

Re: [R] Query about use of format in strptime

2016-04-11 Thread MacQueen, Don
First I added one row to your data, to illustrate a case with missing times: year month day hh mm hs 2007 11 19 0 0 0.00 2007 11 19 0 30 0.00 2007 11 19 1 0 0.00 2007 11 19 1 30 0.00 2007 11 19 2 0 0.00 2007 11 19 2 30 0.00 2007 11 19 3 0 0.00 2007 11 19 3 30 0.00 2007 11 19 4 0 0.00 2007 11 19 4

Re: [R] [R-SIG-Finance] [VC++ calling R] How to create a real-time interactive ticking time-series chart using dygraph via RInside?

2016-04-11 Thread Joshua Ulrich
Please choose *one* _relevant_ mailing list. Spamming 5 (!) mailing lists fragments the conversation and makes things difficult for everyone involved. On Mon, Apr 11, 2016 at 10:03 AM, Mike Deanza wrote: > Hi all, > > > I am trying to figure out how to do this in R

[R] [VC++ calling R] How to create a real-time interactive ticking time-series chart using dygraph via RInside?

2016-04-11 Thread Mike Deanza
Hi all, I am trying to figure out how to do this in R and I need your help. My journey started from something like the following: http://stackoverflow.com/questions/11365857/real-time-auto-updating-incremental-plot-in-r/1#1 n=1000 df=data.frame(time=1:n,y=runif(n)) window=100 for(i in

Re: [R] write a function inside the summation in a more condensed form

2016-04-11 Thread S Ellison
> I want to write the inside function (3^(x[i]+x[j])) in a more condensed form > cause this will help me when the multiple summations are more than two indices<-c(i,j) #or whatever you want 3^sum( x[indices] ) S Ellison *** This

Re: [R] Is that an efficient way to find the overlapped , upstream and downstream ranges for a bunch of ranges

2016-04-11 Thread Michael Lawrence
For the sake of prosterity, this question was asked and answered here: https://support.bioconductor.org/p/80448 On Tue, Apr 5, 2016 at 10:27 AM, 何尧 wrote: > I do have a bunch of genes ( nearly ~5) from the whole genome, which > read in genomic ranges > > A range(gene) can

[R] Correlation between package output

2016-04-11 Thread Fabio Monteiro
Hello I'm currently using the dbFD function of the FD package and i'm having some things that I can't do. Is there any way to check the relations between dbFD indexes? Function cor for example? I can't manage to put the informations correctly dbFD function gives a lot of output (indexes -

Re: [R] Adding Two-Headed Arrow in map legend

2016-04-11 Thread Miluji Sb
Dear David, Thank you very much for your replies! I didn't know about par('usr'). I get different coordinates though: [1] -19.75966 54.75966 33.6 71.4 But the arrow is not at the bottom of the map. I will keep playing with this. Thanks again! Sincerely, Milu On Mon, Apr 11, 2016

[R] R cannot allocate a vector of size 5.4mb

2016-04-11 Thread Jijo Sunny George
Hi, I am trying to do mixed integer programming using R & Java. My input is a list of flight legs which is proportional to the number of times the loop is executed. The input is fed from java to R. I cannot avoid the for loops as it is part of the logic. I am running into a "cannot allocate a

Re: [R] Query about use of format in strptime

2016-04-11 Thread David Winsemius
> On Apr 11, 2016, at 1:48 AM, Stefano Sofia > wrote: > > Dear Jim and dear Enrico, > thank you for your replies. > Unfortunately your hints didn't solve my problem, and I am getting mad. > Can I show you my whole process? I will be as quick as possible. > I

Re: [R] Query about use of format in strptime

2016-04-11 Thread Stefano Sofia
Dear Jim and dear Enrico, thank you for your replies. Unfortunately your hints didn't solve my problem, and I am getting mad. Can I show you my whole process? I will be as quick as possible. I start from a data frame called Snow of the form year month day hh mm hs 2007 11 19 0 0 0.00 2007 11 19 0

Re: [R] Query about use of format in strptime

2016-04-11 Thread Enrico Schumann
On Mon, 11 Apr 2016, Stefano Sofia writes: > Dear R-list users, > I need to use strptime because I have to deal with date with hours and > minutes. > I read the manual for strptime and I also looked at many examples, but when I > try to apply it to my code, I

Re: [R] Query about use of format in strptime

2016-04-11 Thread Jim Lemon
Hi Stefano, As the help page says: "The default for the format methods is "%Y-%m-%d %H:%M:%S" if any element has a time component which is not midnight, and "%Y-%m-%d" otherwise. This is because when the result is printed, it uses the default format. If you want a specified output representation:

[R] Query about use of format in strptime

2016-04-11 Thread Stefano Sofia
Dear R-list users, I need to use strptime because I have to deal with date with hours and minutes. I read the manual for strptime and I also looked at many examples, but when I try to apply it to my code, I always encounter some problems. I try to change the default format, with no success. Why?