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]

RE: st: St: cumulative incidence graph


From   "Abrams, Judith" <[email protected]>
To   <[email protected]>
Subject   RE: st: St: cumulative incidence graph
Date   Fri, 1 Jun 2012 09:45:41 -0400

Although the actual input command needed some modification, your
suggestion solved the problem.

Thanks very much

Judy

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Steve Samuels
Sent: Thursday, May 31, 2012 6:38 PM
To: [email protected]
Subject: Re: st: St: cumulative incidence graph


One possibility: read in and append the following line to your data
before plotting

*************************
input cumincm cumincd _t
0 0 0
************************


Steve
[email protected]

On May 31, 2012, at 5:20 PM, Abrams, Judith wrote:

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/


*
*   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/

-----------
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