Re: [R] Lack-of-fit test for linear mixed effects model (lme) including two fixed effects

2014-05-18 Thread Bert Gunter
This is really the sort of issue that should be discussed with a local statistical expert. (1) It is, a statistical, not an R programming question; (2) Would be better posed on the R-sig-mixed-moodels list anyway; (3) As lack of fit tests tend to be basically useless and scientifically

Re: [R] Lamperti trnasformation simulation.

2014-05-18 Thread Simon Blomberg
On 17/05/14 19:10, Xuse Chuse wrote: Dear users, I am trying to simulate a Lamperti transformation of a brownian motion: W(e_t). Could anyone give some clue how to do it? Thank you beforehand. Regards, C. [[alternative HTML version deleted]]

Re: [R] How to Optimize two functions together in R

2014-05-18 Thread Suzen, Mehmet
This deals with the multi-objective optimisation. Try MCO and emoa packages. http://stats.stackexchange.com/questions/77580/optimization-of-multiple-objective-functions-with-constraints On 15 May 2014 17:47, Mingxuan Han han...@purdue.edu wrote: I am trying to minimize two functions with same

Re: [R] Discrete and Continuous variables

2014-05-18 Thread Patrick Burns
Perhaps something involving: sapply(dataFrame, function(z) length(unique(z))) Pat On 17/05/2014 17:31, a...@dpi.inpe.br wrote: Hello everybody! I have a data frame with discrete and continuous variables something like this: 011.462707165309.0171912.57041000. 10

Re: [R] dev-lang/R-3.1.0: biocLite(vsn) removes all files in /

2014-05-18 Thread Uwe Ligges
As alternative, just use R itself for it: chooseBioCmirror() setRepositories() # select BioC repositories here install.packages(vsn) Which should so the trick without any additional tools not shiped with R directly. Best, Uwe Ligges On 18.05.2014 07:38, Jeff Newmiller wrote: Then you

Re: [R] dev-lang/R-3.1.0: biocLite(vsn) removes all files in /

2014-05-18 Thread Martin Morgan
This would be very bad and certainly unintended if it were the responsibility of biocLite. Can we communicate off-list about this? In particular can you report noquote(readLines(http://bioconductor.org/biocLite.R;)) ? Martin Morgan On 05/17/2014 10:16 PM, Juergen Rose wrote: I had the

[R] help with xts

2014-05-18 Thread Pete
I have 3 xts objects: test, cond1, cond2 You can download here: https://dl.dropboxusercontent.com/u/102669/obj.rar My problem is very simple. test [ cond1 cond2] = NA THIS WORKS test [ cond1 cond2] = -test [ cond1 cond2] THIS DOESN'T WORKS Why? My objective

Re: [R] help with xts

2014-05-18 Thread Bert Gunter
Presumably -z is not defined for an xts class object,z ? (whereas indexing is) -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 Data is not information. Information is not knowledge. And knowledge is certainly not wisdom. H. Gilbert Welch On Sun, May 18, 2014 at 7:25

Re: [R] help with xts

2014-05-18 Thread Joshua Ulrich
Using subset assignment with an array usually doesn't work well with xts/zoo objects. Your case wouldn't even work with a matrix because you have NA in your array. In this case, you can achieve the same result using multiplication: pos.neg.1 - ((cond1 cond2)*-2+1) test - test * pos.neg.1 Best,

[R] unable to collate and parse R files for package -- unexpected end of input

2014-05-18 Thread Timothy W. Cook
This is the error I get attempting to build and install a package I wrote. I am using R Studio (but I did try with R CMDs as well). The file that is blamed in the error is the last file alphabetically. If I remove that file. I get the same error on the remaining last file alphabetically. So

Re: [R] filename of current device

2014-05-18 Thread Prof Brian Ripley
On 14/05/2014 23:04, Andreas Leha wrote: Hi all, how do I find out about the filename, the currently open (let's say pdf) device is writing to? If I find 'dev.cur()' returning 'pdf 3' when I expect 'nulldevice 1' I would like to know, which file that pdf device is actually targeting. Any help

Re: [R] dev-lang/R-3.1.0: biocLite(vsn) removes all files in /

2014-05-18 Thread peter dalgaard
On 18 May 2014, at 07:38 , Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: Then you had best not do it again if you don't like that result. 1) This is not the right mailing list for issues having to do with bioconductor. Please go to the bioconductor mailing list for that. Hmm, this is one

Re: [R] unable to collate and parse R files for package -- unexpected end of input

2014-05-18 Thread Duncan Murdoch
On 18/05/2014, 12:54 PM, Timothy W. Cook wrote: This is the error I get attempting to build and install a package I wrote. I am using R Studio (but I did try with R CMDs as well). The file that is blamed in the error is the last file alphabetically. If I remove that file. I get the same

Re: [R] unable to collate and parse R files for package -- unexpected end of input

2014-05-18 Thread Timothy W. Cook
Thanks Duncan. Exactly what I needed. A push in the right direction to finding it. I've already found the file and I am sure to find the problem child soon. Cheers, Tim On Sun, May 18, 2014 at 5:24 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote: On 18/05/2014, 12:54 PM, Timothy W. Cook

Re: [R] unable to collate and parse R files for package -- unexpected end of input

2014-05-18 Thread Timothy W. Cook
Yep, found it. I was missing a carriage return in the generator so the closing '}' was ending up on the line above with a comment. Thanks again. On Sun, May 18, 2014 at 5:40 PM, Timothy W. Cook t...@mlhim.org wrote: Thanks Duncan. Exactly what I needed. A push in the right direction to

[R] Is there an easier way than this to list all functions in the global environment?

2014-05-18 Thread Byron Dom
After an unsuccessful search thru several books plus online documentation, I was unable to find a simple way to do this, so I wrote my own function (see below) to do it.  I'm relatively new to R however, so I'm guessing that there must be an easier way to do it. I want to list all functions

Re: [R] Is there an easier way than this to list all functions in the global environment?

2014-05-18 Thread Peter Alspach
Tena koe Byron Many years ago, I came across the following function by Simon Fear: function (splitby = mode, pos = 1, ...) { lsout - ls(pos = pos, ...) tapply(lsout, sapply(lsout, function(x) { splitby(get(x)) }), invisible) } from which one can deduce that, given your obj,

Re: [R] Saving the ouput data

2014-05-18 Thread jwd
Or you can try help(sink). JWDougherty __ 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,

Re: [R] Is there an easier way than this to list all functions in the global environment?

2014-05-18 Thread arun
Hi, You may also check ?lsf.str() c(lsf.str()) A.K. On Sunday, May 18, 2014 7:27 PM, Peter Alspach peter.alsp...@plantandfood.co.nz wrote: Tena koe Byron Many years ago, I came across the following function by Simon Fear: function (splitby = mode, pos = 1, ...) {     lsout - ls(pos = pos,

Re: [R] dev-lang/R-3.1.0: biocLite(vsn) removes all files in /

2014-05-18 Thread jwd
On Sun, 18 May 2014 07:16:46 +0200 Juergen Rose r...@rz.uni-potsdam.de wrote: What disappeared are links and three files. The links are recreatable, although they would be better placed in user space rather than under /. Of the three files, the *bz2 appears to be part of a Gentoo release, the

[R] Testing parallel regression assumption

2014-05-18 Thread caoweina
Dear Rose : I saw your questions about the R function that performs brant test. Have you worked out ? Please give some advice. I need to do the brant test in R . Thank you very much! sincerely! Anna __

Re: [R] Second axis on bottom of graph

2014-05-18 Thread Hurr
Sorry, I'm enclosing incomplete not-runnable code. axis(1,tick=TRUE,at=horTicLocs,labels=rep(,length(horLabels)),padj=0) staxlab(1,at=horTicLocs,labels=horLabels,srt=90,adj=c(1,0)) nFrqTicInvls=9; frqTicLocs - vector(length=nFrqTicInvls+1); frqLabels - vector(length=nFrqTicInvls+1);

Re: [R] Second axis on bottom of graph

2014-05-18 Thread Jim Lemon
On Sun, 18 May 2014 09:56:03 PM Hurr wrote: Sorry, I'm enclosing incomplete not-runnable code. axis(1,tick=TRUE,at=horTicLocs,labels=rep(,length(horLabels)),padj=0) staxlab(1,at=horTicLocs,labels=horLabels,srt=90,adj=c(1,0)) nFrqTicInvls=9; frqTicLocs - vector(length=nFrqTicInvls+1);

[R-es] Utilizar scripts de PHP en R

2014-05-18 Thread Alvaro Franquet
Hola a todos, Estoy interesado en usar un Script de PHP desde R y me gustaría saber si eso es posible y como se hace. Muchas gracias de antemano por las respuestas. [[alternative HTML version deleted]] ___ R-help-es mailing list