Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: sts graph


From   Philip Ryan <[email protected]>
To   [email protected]
Subject   Re: st: sts graph
Date   Fri, 01 Oct 2004 12:20:53 +0930

I will address the second of Anthony's questions.

The tick marks for the -censored()- option of -sts graph- are rendered by a call to -rspike- but there does not appear to be a way to call -rspike-s's options, in this case, -blcolor()-.

Now sts.ado is a fearsome thing to dabble with, and one hesitates, but I have nevertheless done so. I call the "new" program sts_kludge.ado and with good reason.

It allows just one more option: blcolor(-choice of color-) to render the colours of spikes at times of censoring. For example:

sysuse cancer
stset studyt, fail(died)
sts_kludge graph, censored(single) blcolor(green)

A far better approach would be to have a new option associated with -censored()- to allow multiple options of -rspike- to be invoked (as we have the pairs -atrisk- and -atriskopts(marker_label_options)- and -gwood- and -ciopts()- ). This would allow, for example, the use of -mlabcol()- to render the colour of the numbers censored.


I will send sts_kludge to Anthony separately - I think it is too much of an under-tested beast to let loose.

Phil

At 04:58 PM 30/09/2004 +0100, you wrote:

Dear Statalisters,

Two questions regarding the "sts graph" command to create standard
Kaplan-Meier plots

1) Using the "atrisk" option - can I alter the time interval so that I get
the number of cases at risk at the beginning of each year rather than at the
beginning of each time interval?

2) Using the "censored(.)" - how does one change the colour of the tick
marks?

Many thanks

Anthony

Anthony V. Moorman, PhD
LRF Senior Scientist,
LRF Cytogenetics Group,
Cancer Sciences Division,
University of Southampton,
MP822, Duthie Building,
Southampton General Hospital,
Tremona Road, Southampton, SO16 6YD
Tel: (023) 8079 8403
Fax: (023) 8079 6432




*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
Philip Ryan
Associate Professor,
Department of Public Health
Associate Dean (Information Technology)
Faculty of Health Sciences
University of Adelaide 5005
South Australia
tel 61 8 8303 3570
fax 61 8 8223 4075
http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index