Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

RE: st: St: cumulative incidence graph


From   "Abrams, Judith" <abramsj@karmanos.org>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Steve Samuels
Sent: Thursday, May 31, 2012 6:38 PM
To: statalist@hsphsun2.harvard.edu
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
sjsamuels@gmail.com

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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index