[R] Frailty variable and cluster function in coxph

2012-07-31 Thread BrittD
I have a dataset with the variables: idstart stop event tempdiff straling The data contains recurrent event, so for each id more than one interval is created and more than one event can occur. I have fitted the next model: mod1 = coxph(Surv(start,stop,event) ~ tempdiff3 + straling3

[R] Survival data with time dependent covariate

2012-05-09 Thread BrittD
http://r.789695.n4.nabble.com/file/n4619765/survival_file.png Hi everyone, This is what my data looks like, I haven't included the covariates, the example would get too large. uid id date feverstart dumfever 130 75 3464652011-04-11

Re: [R] Matrix heatmap

2012-05-09 Thread BrittD
I would leave my table as a heatmap where darker colors represent higher similarity, and the lighter colors represent less level of similarity. I'm using version 2.11 of R. I once used this code, maybe it will help you: #dendogram plot(dendro15, labels = cellType) ### I first made a dendrogra

[R] Dates in R

2012-05-07 Thread BrittD
Hi everyone, I have a file in which the dates are subscribed as for instance: 20101020. This is 20th Octobre 2010. My problem is that R won't except this as a date, since there is no sign to seperate the Year, Month and Day and that it will only see it as an origin, which it is not. Does anyone k