search for: weekc

Displaying 1 result from an estimated 1 matches for "weekc".

Did you mean: weeks
2008 Apr 17
0
linear contrasts in coxph?
...group A and B are not differing very much) So, I suppose a contrast like -1,0,0,1 isn't just first versus last group, but I didn't found anything on that yet. Do you have an idea? Kind reagrds, John Code: x <- 40 weeka <- round(rnorm (x,4,0.3),0) weekb <- round(rnorm (x,4,0.4),0) weekc <- round(rnorm (x,8,0.6),0) weekd <- round(rnorm (x,12,0.9),0) week <- c(weeka, weekb,weekc, weekd) cens <- round(runif((4*x),0.4,1),0) # 0 = censored treat <- as.factor(c(rep("A",x),rep("B",x), rep("C",x), rep("D",x))) S <- Surv(week,cen...