Re: [R-es] Problemas de instalación

2015-12-09 Thread Víctor Granda García
Hola Justo. Por el error que te da parece que te falta el paquete lme4 para poder cargar Rcommander. En Windows no estoy 100% seguro, pero al menos en linux cada vez que actualizo a una versión mayor de R los paquetes me los guarda en otra carpeta distinta para la nueva versión, por lo que tengo

Re: [R-es] Problemas de instalación

2015-12-09 Thread miguel.angel.rodriguez.muinos
Hola Justo. Puede que tu problema tenga que ver con los mirrors httpS (ves menos en el CRAN porque hay menos que http o ftp) y la instalación de algunos paquetes. Aunque usar https es una opción más que recomendable, en determinadas circunstancias (que todavía no tengo exactamente claras) parece

[R-es] Problemas de instalación

2015-12-09 Thread Justo de Jorge Moreno
Buenos días, He cambiado la versión de R como siempre a través de: install.packages("installr") library(installr) updateR() En esta ocasión trabajando bajo windows 10. La versión 3.2.2 me ofrece menos mirror, pero mi principal problema es que no soy capaz de trabajar con Rcommander (ahora lo hago

[R-es] SVM hadoop

2015-12-09 Thread MªLuz Morales
Buenos días, alguien sabe si hay alguna manera de implementar una máquina de soporte vectorial (svm) con R-hadoop?? Mi interés es hacer procesamiento big data con svm. Se que en R, existen los paquetes {RtextTools} y {e1071} que permiten hacer svm. Pero no estoy segura de que el algoritmo sea

[R] applying wilcox.test to every combination of rows in a matrix (pairwise)

2015-12-09 Thread debra ragland via R-help
Hello All, I have written the following loop which will apply/split the same vector of numbers (pc1.eigv) to each (logical) row of a matrix and run a wilcox.test on those values that line up with TRUE and those that line up with FALSE. It works fine. However, I am now interested in using the

Re: [R] Custom manual legend in ggplot2

2015-12-09 Thread Giorgio Garziano
Try to look at the link: http://www.cookbook-r.com/Graphs/Legends_(ggplot2)/ Also consider: help(theme) legend.backgroundbackground of legend (element_rect; inherits from rect) legend.margin extra space added around legend (unit) legend.key background underneath legend keys

Re: [R] Custom manual legend in ggplot2

2015-12-09 Thread Ronaldo Reis Júnior
Thanks, Now its work, but I dont get to change te legend position. Look: ggplot(data1, aes(x=x1, y=y1))+ geom_point()+ geom_smooth(method="glm", family="gaussian",aes(linetype="equation1"))+ geom_smooth(aes(x=x1, y=y1, linetype="equation2"),data=data2, method="glm",

Re: [R] applying wilcox.test to every combination of rows in a matrix (pairwise)

2015-12-09 Thread Ulrik Stervbo
Could you use expand.grid and loop over each returned row? Best, Ulrik On Wed, 9 Dec 2015 at 13:55 debra ragland via R-help wrote: > Hello All, > > I have written the following loop which will apply/split the same vector > of numbers (pc1.eigv) to each (logical) row of a

[R] Testing a non-binary categorical variable with coxph and robust variance

2015-12-09 Thread Brant Inman
__ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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

Re: [R] applying wilcox.test to every combination of rows in a matrix (pairwise)

2015-12-09 Thread S Ellison
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of debra ragland > via R-help > some sample data > p<-matrix(c(rep(c(F,T,F),3), rep(c(T,F,T),3), rep(c(T,T,F),3), > rep(c(F,F,T),3))) i) Something wrong with p, here; it's a single column matrix. did you mean

[R] Custom manual legend in ggplot2

2015-12-09 Thread Ronaldo Reis Júnior
Hi, I'm trying to make a ggplot() graph with a custom legend, but without success, it is simple, I have somethink like this in traditional plot: plot(y~x) curve(equation1,lty=1) curve(equation2,lty=2) legend(x,y,legend=c("equation 1","equation 2"),lty=c(1,2),bty="n"). In my ggplot graph I have

Re: [R] Custom manual legend in ggplot2

2015-12-09 Thread Giorgio Garziano
Last "+theme_bw()" to be deleted. Try this: ggplot(data1, aes(x=x1, y=y1))+ geom_point()+ geom_smooth(method="glm", family="gaussian",aes(linetype="equation1"))+ geom_smooth(aes(x=x1, y=y1, linetype="equation2"),data=data2, method="glm", family="gaussian")+ scale_linetype_manual(values

Re: [R] Custom manual legend in ggplot2

2015-12-09 Thread Ronaldo Reis Júnior
Hi, Now its work, just invert the theme() and theme_bw() position. The theme_bw() was overlapping the legend position. Thanks Ronaldo Em 09-12-2015 13:11, Ronaldo Reis J�nior escreveu: > Thanks, > > Now its work, but I dont get to change te legend position. Look: > > > ggplot(data1, aes(x=x1,

Re: [R] expand dataframe but time gap is not the same

2015-12-09 Thread Dagmar
Hello Petr, hi all, Thank you very much for trying to help me Petr! Unfortunately it didn't bring me further. I do not want to round on full hours but I want uneven intervals to 6 portions. That is probably the biggest part of my problem. Does anyone know a solution? That would be very, very

Re: [R] applying wilcox.test to every combination of rows in a matrix (pairwise)

2015-12-09 Thread debra ragland via R-help
Sorry for the repost, but I want to clarify that I am trying to apply the wilcox.test to every pairwise combination of rows i.e. row 1 with row 2, row 1 with row 3, row 1 with row 4 and so on until all row combinations have been achieved. I've made some corrections. On Wednesday, December

Re: [R] expand dataframe but time gap is not the same

2015-12-09 Thread William Dunlap
You can use the approx() function (in that stats package) to put 5 equally spaced times between your high and low water times. E.g., in the following 'tmp' will be your interpolated times, in seconds since 1970, which I clumsily convert to POSIX times (I can never remember how to deal with time

Re: [R] applying wilcox.test to every combination of rows in a matrix (pairwise)

2015-12-09 Thread David L Carlson
If I understand correctly, this should do what you want, but there will be warnings for each test about p-values not being exact because you reuse the pc1.eigv vector for each row so that each value occurs twice: First we can simplify the original comparisons by using the formula mode for

Re: [R] change the x axis tickmarks when using plot function in drc package

2015-12-09 Thread li li
Thanks for your help Giorgio! Both options worked. 2015-12-09 11:46 GMT-05:00 Giorgio Garziano : > Looking at the source code of the package drc, there is something that may > somehow explain what > you are experiencing: > > file: plot.drc.R, function addAxes(),

[R] forest plot metafor

2015-12-09 Thread Mario Petretta
Dear all, I use metafor package to generate a forest plot showing the weight of each study in the plot. I use the code: library(metafor) data(dat.bcg) res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, measure="RR", slab=paste(author, year, sep=", "), method="REML")

Re: [R] applying wilcox.test to every combination of rows in a matrix (pairwise)

2015-12-09 Thread David L Carlson
The error message suggests that you have more than TRUE and FALSE in your logical matrix. What does str(p) show you? Could you have missing values? David C -Original Message- From: debra ragland [mailto:ragland.de...@yahoo.com] Sent: Wednesday, December 9, 2015 11:47 AM To: David L

Re: [R] change the x axis tickmarks when using plot function in -drc- package

2015-12-09 Thread Clive Nicholas via R-help
Message: 30 Date: Tue, 8 Dec 2015 22:56:00 -0500 From: li li To: Jim Lemon Cc: r-help Subject: Re: [R] change the x axis tickmarks when using plot function in drc package Message-ID:

[R] seq.POSIXt creates duplicate entries

2015-12-09 Thread Micha Silver
Hello all: I am creating a time series using seq.POSIXt. ts.full <- as.character(seq.POSIXt(as.POSIXct(start(d.zoo)), as.POSIXct(end(d.zoo)), by="hour")) The period crosses the hour of change from "summer time" to "winter time". When checking with: duplicated(ts.full) I see that there are

[R] Restricted 4-PL curves using drc package

2015-12-09 Thread li li
Hi all, In drc package, is there a function which can be used to fit restricted 4PL curves? For example, we restrict two 4PL curves have the same lower and upper asymptotes? Thanks for the help in advance! Hanna [[alternative HTML version deleted]]

Re: [R] Restricted 4-PL curves using drc package

2015-12-09 Thread Bert Gunter
1. Don't know, but, assuming I understand you correctly, probably not. 2 Note (subject to my understanding again) that you can rephrase your query as fitting a 4 parameter logistic to all the data together with a grouping factor to indicate the separate curves, allowing two of the parameters

[R] there is a vectorinzing version of "[[<-" for "tclArray" class ?

2015-12-09 Thread Cleber N.Borges
hi all, there is a vectorinzing version of "[[<-" for "tclArray" class ? TIA cleber # > library(tcltk); getS3method("[[<-",'tclArray') function (x, ..., value) { name <- as.character(x) i <- paste(..., sep = ",") if (is.null(value)) .External(.C_RTcl_RemoveArrayElem,

Re: [R-es] SVM hadoop

2015-12-09 Thread Javier Marcuzzi
Estimados Un día leí algo en el siguiente hipervínculo, pero nunca lo use. http://blog.revolutionanalytics.com/2015/06/using-hadoop-with-r-it-depends.html Javier Rubén Marcuzzi De: Carlos J. Gil Bellosta Enviado: miércoles, 9 de diciembre de 2015 14:33 Para: MªLuz Morales CC: r-help-es

Re: [R] seq.POSIXt creates duplicate entries

2015-12-09 Thread David Winsemius
> On Dec 9, 2015, at 10:58 AM, Micha Silver wrote: > > Hello all: > I am creating a time series using seq.POSIXt. > > ts.full <- as.character(seq.POSIXt(as.POSIXct(start(d.zoo)), > as.POSIXct(end(d.zoo)), by="hour")) > > The period crosses the hour of change from "summer

[R] Help about reliability and accelerated life testin

2015-12-09 Thread MANAL AL-HARBI
Hello Can you help me to do programe or order For ( estimated of constant stress partially accelerated life testing model parameter? ) 1/what is the package ? 2/what is the order ? Thank you Manal Alharbi [[alternative HTML version deleted]]

[R] Use of R for estimation of Discrete Choice Models incorporating latent variables

2015-12-09 Thread Maria Alice Jacques
Dear all, I would like to know if it is possible to estimate an integrated choice and latent variable model with R. If it is so, please send me the name of the respective package. Best regards, Maria Alice P. Jacques Associated Researcher University of Brasilia - Brazil [[alternative

Re: [R] seq.POSIXt creates duplicate entries

2015-12-09 Thread Micha Silver
Hello David and David: Thanks for responding On 12/10/2015 01:33 AM, David Winsemius wrote: On Dec 9, 2015, at 10:58 AM, Micha Silver wrote: Hello all: I am creating a time series using seq.POSIXt. ts.full <- as.character(seq.POSIXt(as.POSIXct(start(d.zoo)),

[R] problems with plotting/graphics after changing my computer

2015-12-09 Thread Alexander Moßbrucker
Dear all, I have worked on AKDEs using the package ctmm. Because my old computer often crashed, I bought a new one and reinstalled all the software, including r. All seemed to work fine, but when I wanted to plot several results I encountered error messages. I tried many different plots, some

Re: [R] problems with plotting/graphics after changing my computer

2015-12-09 Thread PIKAL Petr
Hi 1. Do not post in HTML. Your mail is corrupted and almost unreadable. 2. As far I I could decipher it, your plot call is plot(cilla,AKDE=KD2) According to docs the plot function does not have parameter called AKDE plot(x, CTMM=NULL, UD=NULL, level.UD=0.95, level=0.95, DF="CDF", col="red",

Re: [R] there is a vectorinzing version of "[[<-" for "tclArray" class ?

2015-12-09 Thread phgrosjean
library(tcltk) methods(class = "tclArray") ## [1] [[ [[<- $$<- length length<- namesnames<- ## see '?methods' for accessing help and source code It should be something like `[<-`. But this one is not defined. Perhaps can you contribute one here? Best, Philippe

Re: [R] Importing data by targeting in filenames inside a nested list

2015-12-09 Thread PIKAL Petr
Hi I did not see any answer so I give it a try. Your approach seems to be OK. However you probably need to polish your code to get the correct part of nested list. > lll<-list(a=rnorm(10), b= list(x=1:10, y<-letters)) > lll[[1]] [1] -0.1876418 1.5933030 -0.1799642 0.1713959 1.1079227

Re: [R] change the x axis tickmarks when using plot function in drc package

2015-12-09 Thread Giorgio Garziano
Looking at the source code of the package drc, there is something that may somehow explain what you are experiencing: file: plot.drc.R, function addAxes(), lines 543-626 ceilingxTicks <- ceiling(log10(xaxisTicks[-1])) ... xaxisTicks <- c(xaxisTicks[1], 10^(unique(ceilingxTicks))) xLabels

Re: [R-es] SVM hadoop

2015-12-09 Thread Carlos J. Gil Bellosta
No, no correrán en paralelo si usas los SVM de paquetes como e1071. No obstante, tienes, por un lado, los trucos habituales para hacer algo "parecido" a SVM o "basado" en SVM pero que no sea SVM. Si es que eso te vale. Puedes probar a hacerlo con mllib (sobre Spark), como aquí