[R] Plotting number of patients at risk below survival curve

2010-11-18 Thread t . raff
Dear list, does anyone know of a R-package that has implemented the increasingly popular inclusion of the number of patients at risk below Kaplan-Meier curves like in http://bloodjournal.hematologylibrary.org/content/vol116/issue19/images/large/zh89991058760001.jpeg any hint (or negative answer)

Re: [R] Plotting number of patients at risk below survival curve

2010-11-19 Thread t . raff
Dear Dieter, thanks a lot, that was exactly what I was looking for. Best regards Thorsten > From: Dieter Menne > Date: Fri, 19 Nov 2010 00:36:58 -0800 (PST) > Thorsten Raff wrote: > > >> does anyone know of a R-package that has implemented the increasingly >> popular >> inclusion of the numbe

[R] aggregate and median

2008-12-12 Thread t . raff
Hello R-experts, I have a simple question: how do I aggregate data using the median function with na.rm = TRUE, i.e. aggregate(x, list(x$y, x$z), FUN = '') I have tried 'median(x, na.rm = TRUE)' but that doesn't help. Any suggestions are very much appreciated, Thorsten __