Re: [R] how to plot hazard function for coxph model?

2012-07-27 Thread Suman Pramanik
No, this is not what i wanted. Plotting of survfit object in therneu's survival package plots survival/cumulative incidence and cumulative hazard function for a given fit. What I wanted to know was that is there a way to plot hazard function of a plot? I got the reply from Dr Therneu yesterday.

[R] reply: help with loop

2012-07-24 Thread Suman Pramanik
Check the following code, it should work and solve your problem. # function is.err returns 1 if criteria for erroneous entry are met, else returns 0 for each district. is.err - function(df) { # df = data frame with entries for 1 district with(df, { C - C[!is.na(C)]# C is the counts with

[R] (no subject)

2012-07-20 Thread Suman Pramanik
Dear Sir, I am using timereg package for analysing competing risk data. There are two options in method: proportional and additive. How to choose among the methods for analysis and how to check which of the methods are appropiate for the specific data. Tanks a lot. Dr Suman Kumar