[R] Error In DESeq installation

2016-10-23 Thread Yogesh Gupta
Dear All, I am getting error in DESeq installation in R. package ‘DESeq’ is not available (for R version 3.3.1) > source("http://www.Bioconductor.org/biocLite.R;) Bioconductor version 3.4 (BiocInstaller 1.24.0), ?biocLite for help > biocLite("BiocUpgrade") Error: Bioconductor version 3.4 cannot

Re: [R] Using with() to avoid $ ?

2016-10-23 Thread William Dunlap via R-help
Here is a concrete example where with(data, fit(formula)) differs from fit(formula, data): > z1 <- function(myFormula, myData) lm(myFormula, data=myData) > z2 <- function(myFormula, myData) with(myData, lm(myFormula)) > coef(z1(hp ~ wt, datasets::mtcars)) (Intercept) wt -1.820922

Re: [R] Using with() to avoid $ ?

2016-10-23 Thread Duncan Murdoch
On 23/10/2016 3:43 PM, Bert Gunter wrote: Yes, variables in the formula should be handled by nse with the data argument. Got it -- thanks. But still ... can with() be used to handle those and/or any other variables in foo that appear as arguments. I see no problems in doing so, but ... ? One

Re: [R] Significance of Svyrepdesign Object Warning

2016-10-23 Thread Courtney Benjamin
​Thank you for your help. I did try Anthony's recommendation of removing the 'na.action=na.exclude' ; I thought I needed that argument as the data set includes NA values. I found it interesting that without the 'na.action=na.exclude' argument, the baseline level of two of my predictor

Re: [R] Using with() to avoid $ ?

2016-10-23 Thread Bert Gunter
Yes, variables in the formula should be handled by nse with the data argument. Got it -- thanks. But still ... can with() be used to handle those and/or any other variables in foo that appear as arguments. I see no problems in doing so, but ... ? Bert (But see inline below) On Oct 23, 2016 7:24

Re: [R] Significance of Svyrepdesign Object Warning

2016-10-23 Thread William Dunlap via R-help
The immediate problem could be solved by changing the following lines in survey:::summary.svrepglm from presid <- resid(object, "pearson") dispersion <- sum(object$survey.design$pweights * presid^2, na.rm = TRUE)/sum(object$survey.design$pweights) to presid <- resid(object,

Re: [R] Significance of Svyrepdesign Object Warning

2016-10-23 Thread Anthony Damico
hi, great example. i am ccing survey package author/maintainer dr. lumley. why do you have `na.action=na.exclude`? if you remove it, things work as expected-- library(RCurl) library(survey) data <- getURL("

Re: [R] Using with() to avoid $ ?

2016-10-23 Thread Jeff Newmiller
No. And I don't know why you are conflating the treatment of variables in the formula with treatment of variables passed as other arguments. It is sort of like thinking the x symbols in foo$x[ x < 0 ] refer to the same data. foo$y ~ foo$x1 + foo$x2 + foo$x3 is not preferable, and given the

[R] Using with() to avoid $ ?

2016-10-23 Thread Bert Gunter
As has been noted oftimes on this list f( y ~ x1 + x2 + x3 + ... , data = foo, ...) is much preferable to f( foo$y ~ foo$x1 + foo$x2 + foo$x3 + ..., ...) (with no data argument), using nse = non-standard evaluation to set the environment for formula evaluation. However, as queries here

[R] Significance of Svyrepdesign Object Warning

2016-10-23 Thread Courtney Benjamin
Hello R Users, I am using Lumley's Survey Package in R to analyze complex survey data that involves 200 balanced repeated replicate (BRR) weight variables. I have ensured that my svyrepdesign object that specifies the application of the BRR weights to the data set is accurate and I have

Re: [R] gtools Gator infected...

2016-10-23 Thread Troels Ring
I have informed the vendor that perhaps spyhunter 4 is too aggressive. They suggested I could make an exclusion - but it turned out to be not looking for Gator rather than not looking in gtools.dll. I shall inform if anything appears BW Troels Den 23-10-2016 kl. 11:57 skrev Mateusz Kopyt:

Re: [R] gtools Gator infected...

2016-10-23 Thread Mateusz Kopyt
One of my student also noticed such report (about Gator) from Spyhunter. We have checked that the file on the computer is identical to this from repo. So probably it was a false alarm. If you have some information from enigmasoftware, please share on the list. Best regards Mateusz Kopyt WNE

Re: [R] About reshape dataset

2016-10-23 Thread P Tennant
You could convert your data from a wide format to a long format using the reshape function in base R: DF2 <- reshape(DF, direction="long", idvar=names(DF)[1:3], varying=c("site1_elev", "site1_temp", "site2_elev", "site2_temp"), v.names=c("elev", "temp"),

Re: [R] nls.lm

2016-10-23 Thread Mike meyer
Please accept my apologies as I was in fact wrong. It was not my intention to attack minpack.lm or criticize the maintainer. I like minpack.lm and am fully aware of the effort involved in rewriting the code. Next time I'll use more careful wording. Thanks also to Professor Nash for his efforts.