Re: [R] Right censored data, abundant in zeros for regression analysis.

2015-12-24 Thread Bert Gunter
Strictly speaking, this is a statistical analysis issue, not an R question, although I grant you that the intersection of the two is nonempty. Nevertheless, I would suggest that you post on a statistics list like stats.stackexchange.com . In fact, because the issue of how to effectively deal with s

Re: [R] (no subject)

2015-12-24 Thread Adams, Jean
Excellent job providing example data and a desired result. This code works on the example you provided. Hope it helps. Jean # reshape the info data frame library(tidyr) info2 <- gather(myinfo, set, val, -game) info2$set <- as.numeric(gsub("[[:alpha:]]", "", info2$set)) # add a new column to th

[R] Right censored data, abundant in zeros for regression analysis.

2015-12-24 Thread REES T. (706713)
Hi there, Firstly forgive me if this seem obvious, if there is existing literature on this i can't find it. I am looking at conditioning to stimuli and there in the time taken to perform a certain task. The IV for this data is Conditioning periods ranging from 1-34 periods and the DV is the t

Re: [R] [FORGED] qqPlot vs qqcomp

2015-12-24 Thread mohsen hs
Hi Peter Thanks for your reply. I appreciate that.Murray Christmas. CheersMohsen On Thursday, December 24, 2015 4:15 PM, peter dalgaard wrote: Two ideas: a: Take log of your data and compare with normal distr. b: Use log="xy" as a graphical parameter. Otherwise, you're on your own.

Re: [R] [FORGED] qqPlot vs qqcomp

2015-12-24 Thread mohsen hs
Hi Peter, Thanks once again for your kind reply. One quick question, could you please guide me and let me know how I can get the similar qq plot(log-log scale) that I get from qqcomp, from qqPlotCensored  function(It is similar to qqPlot, and available in EnvStats    http://www.inside-r.org/node/2

Re: [R] assigning values to elements of matrixes

2015-12-24 Thread Matteo Richiardi
Dear all, Thanks very much for your help. This completely clarifies my question. Mayteo Il giorno 23/dic/2015 17:05, "Anthoni, Peter (IMK)" ha scritto: > Hi, > > How about the following: > foo2 <- function(s,i,j,value) > { > M = get(paste("M_",s,sep="")) > M[i,j] = value > assign(paste("M_"

Re: [R] to change the size of the line in the plot created in ggplot2

2015-12-24 Thread Giorgio Garziano
Hi Marna, I prepared this toy example that should help you. x <- seq(1:100) y <- x*x avg <- mean(y) avg.v <- rep(avg,100) # your average column data df <- as.data.frame(cbind(x, y, avg.v)) library(ggplot2) ggplot(data=df[,-3], aes(x=x, y=y)) + geom_line() + geom_line(data=df[,c(1,3)], color='b

Re: [R] to change the size of the line in the plot created in ggplot2

2015-12-24 Thread Marna Wagley
Hi Giorgio, Thank you very much for the code and the link. I read it and also used but this code changed the line into "dashed" for all variables. As I mentioned earlier, I wanted to change for only one variable among 7 variables (for only one variable). Thanks MW On Thu, Dec 24, 2015 at 4:10 AM,

[R] interpolation using R for PCR quantification

2015-12-24 Thread Luigi Marongiu
Dear all, I am a newbie in interpolation using R and I would like to learn better the procedure. I am applying interpolation to quantify nucleic acid targets using an assay known as PCR. To do this, I have two sets of variables: standard of known concentrations and query for which I need to identif

Re: [R] Weighted demean by group on only a selection of the dataset

2015-12-24 Thread David Winsemius
> On Dec 24, 2015, at 5:03 AM, Janka VANSCHOENWINKEL > wrote: > > Dear colleagues, > > I am trying to find a simple code to demean > 1) only certain values of a dataset, > 2) by group > 3) and in a weighted fasion. > > Currently, I can only demean all the numeric variables in the dataset: >

[R] Weighted demean by group on only a selection of the dataset

2015-12-24 Thread Janka VANSCHOENWINKEL
Dear colleagues, I am trying to find a simple code to demean 1) only certain values of a dataset, 2) by group 3) and in a weighted fasion. Currently, I can only demean all the numeric variables in the dataset: Data[,sapply(Data, is.numeric)] <- apply(Data[sapply(Data, is.numeric)], 2, function(

Re: [R] [FORGED] qqPlot vs qqcomp

2015-12-24 Thread peter dalgaard
Two ideas: a: Take log of your data and compare with normal distr. b: Use log="xy" as a graphical parameter. Otherwise, you're on your own. -pd > On 24 Dec 2015, at 10:03 , mohsen hs wrote: > > Hi Peter, > > Thanks once again for your kind reply. > > One quick question, could you please gu

Re: [R] packaging an R-application

2015-12-24 Thread peter dalgaard
It sounds like it could be the sort of issue that Docker/Rocker is trying to address. Someone called Dirk might chime in on this. -pd > On 23 Dec 2015, at 22:29 , Witold E Wolski wrote: > > Dear List, > > > What I am seeking advice for is how to best package an R installation > with all the

Re: [R] to change the size of the line in the plot created in ggplot2

2015-12-24 Thread Giorgio Garziano
You can do it this way, for example: geom_line(linetype="dashed", size=1, colour="blue") Further info at: http://docs.ggplot2.org/current/geom_line.html -- GG [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

[R] to change the size of the line in the plot created in ggplot2

2015-12-24 Thread Marna Wagley
Hi R user, I was trying to make a figure for each of four sites. Each site has 7 classes, among the 7 classes, one is average. I am wondering how I can change the color and size of the line that was average value. I want to highlight average value. Similarly, I have been using smooth function ther