Re: [R] Sweep out control

2012-12-10 Thread arun
plied Mathematics" To: R help Cc: Sent: Monday, December 10, 2012 10:29 AM Subject: [R] Sweep out control Dear all, Assume that I have the following data structure: d <- expand.grid(subj=1:5, time=1:3, treatment=LETTERS[1:3]) d$value <- 10 ^ (as.numeric(d$treatment) + 1) + 10 * d$subj +

[R] Sweep out control

2012-12-10 Thread Thaler,Thorn,LAUSANNE,Applied Mathematics
Dear all, Assume that I have the following data structure: d <- expand.grid(subj=1:5, time=1:3, treatment=LETTERS[1:3]) d$value <- 10 ^ (as.numeric(d$treatment) + 1) + 10 * d$subj + d$time d$value2 <- 10 + d$value where d$treatment == "C" stands for my control group. What I want to achieve