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]

st: Puzzling behavior in -sts graph- with tmax()


From   "Visintainer, Paul" <Paul.Visintainer@baystatehealth.org>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: Puzzling behavior in -sts graph- with tmax()
Date   Wed, 19 Oct 2011 09:17:07 -0400

-sts graph- with option tmax() seems to show inconsistent graphing behavior.  This issue was raised in 2007, but all I could find as a solution was a work-around using -sts gen-, then plotting with -scatter-.  

Here is the inconsistency:

use http://www.stata-press.com/data/r12/drug2b, clear

.sts g  -- plots the last observation as censored to time 39.

.sts g, tmax(35) - appropriately plots to 35 with the last obs as censored

.sts g, tmax(30) - plots to 28 with last obs as terminal, not censored at 30

.sts g, tmax(20) - plots to 20 with last obs as censored


While the difference at time 30 is small (only plotted to time 28 and does not show censoring), in my dataset the discrepancy is quite large.  I'm trying to truncate the plot at 50 days, but -sts graph- will only plot to 10 days.

Am I interpreting this incorrectly?

Thanks.
________________________________________________
Paul F. Visintainer, PhD
Baystate Medical Center


----------------------------------------------------------------------
Please view our annual report at http://baystatehealth.org/annualreport
 

CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org.

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