Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: St: cumulative incidence graph


From   "Abrams, Judith" <abramsj@karmanos.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: St: cumulative incidence graph
Date   Thu, 31 May 2012 17:20:03 -0400

I'm plotting cumulative incidence using the following command. I would
like both curves to start at 0,0 or approximately so, but can't figure
out how to make that happen. Using the code below, the line representing
cumincm starts at 18 months, which is the first occurrence of that
event. I would appreciate suggestions.

	sts graph, risktable plotopts(lstyle(none)) title(Cumulative
Incidence) /*
*/		addplot(line cumincm cumincd  _t , sort c(J J)
legend(off) /*
*/		xlabel(0(6)42) xtitle("Time from Transplant (months)",
margin(medsmall)) /*
*/		ylabel(0(.20)1, angle(horiz) format(%03.2f)) lstyle(p1
p1) /*
*/		name(ci, replace)  

Stata/MP 12.1 for Windows (64-bit x86-64)
Revision 23 May 2012

Thanks,

Judy Abrams

-----------
Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index