s-news
[Top] [All Lists]

Plot of Hazard Curves

To: "S-News (E-mail)" <s-news@lists.biostat.wustl.edu>
Subject: Plot of Hazard Curves
From: "Andrew Scott" <andrew.scott@icfrith.com.au>
Date: Tue, 21 Mar 2006 17:27:06 +1100
Cc: "Kris Angelovski (E-mail)" <enquiries@solutionmetrics.com.au>
Thread-index: AcZMsHlu65ux2JcjT+e1FG5V7ywtZA==
Thread-topic: Plot of Hazard Curves
Dear S-News Readers,
 
Does anyone know how to extend the range of a hazard curve plot?
 
For example, the following commands
 

SurvCurve.1<-survfit(Surv(startTime,endTime,status)~Brand, data="">

plot(SurvCurve.1,fun="cloglog",xlab="Time",ylab="Cumulative Hazard Rates",lty=2:(length(table(Brand))+1),col=1:(length(table(Brand))))

 
produce a plot which appears to have a lower limit of -4.5. This limit remains even if I set a different limit by using the "ylim" option in the plot command above. Can I override this?
 
Also quite often I can get a successful plot of the fitted survival curves but not for the equivalent hazard curves (by removing "fun=cloglog"). I'm not sure why it would work for one but not the other. This usually coincides with the following error with the above command: 'Problem in rep.int: No missing values allowed in "times": rep.int(x, times)'. Any suggestions are welcome.
 
Thanks
Andrew G Scott BEc FIAA
Manager - Strategic Analysis and Product Development
Tel: 02 8853 9117
Mob: 0411 555 486
Fax: 02 8853 9517
andrew.scott@icfrith.com.au
IC Frith & Associates
Suite 1, Building B, 34-46 Brookhollow Ave, Baulkham Hills NSW 2153
Private Mail Bag 14, Castle Hill 1765
Phone: 02 8853 9100
Fax: 02 9634 2396
www.icfrith.com.au

The information contained in this email and any attached files is strictly confidential and may contain legally privileged information. This email should be read by the intended addressee only. If the recipient of this message is not the intended addressee, please advise ICF (Australia) Pty Ltd on +61 2 8853 9100 or icfteam@icfrith.com.au and promptly delete this email and any attachments. The intended recipient of this email may only use, reproduce, disclose or distribute the information contained in this email and any attached files with ICF (Australia) Pty Ltd's permission. If you are not the intended addressee, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email and any attached files. Although ICF (Australia) Pty Ltd believes this e-mail and any attachments to be free of any virus or other defect which may effect your computer, it is the responsibility of the recipient to ensure that it is virus free and ICF (Australia) Pty Ltd does not accept any responsibility for any loss or damage arising in any way from its use. We maintain a database of clients' contact details. If you do not wish to receive electronic messages from us in future please email icfteam@icfrith.com.au. Finally, you should be aware ICF (Australia) Pty Ltd reserves the right and intends to intercept and monitor incoming and outgoing e-mail correspondence, so you should not expect any e-mail communication to be private in nature. ICF (Australia) Pty Ltd ABN 75 115 419 853 AFSL No:291260

 
<Prev in Thread] Current Thread [Next in Thread>
  • Plot of Hazard Curves, Andrew Scott <=