Bookmark and Share

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

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

Re: st: Accessing failure function from sts list

From   Steve Samuels <>
Subject   Re: st: Accessing failure function from sts list
Date   Thu, 7 Jun 2012 10:31:14 -0400

Welcome to Statalist!  When you signed up, you were asked to read the the Statalist FAQ.  If I had to pick the part to read first it would be Section 3.  There you will see the advice "do your homework" before posting.  This means, in part, read the -help- and manual entries. You appear to have missed the following in the -help- for -sts list-:

1. examples that use the option "at(10 40 to 160)", showing that at() can take flexible numeric lists. 
2. the saving() option, which saves the results to a Stata data set.

(If you ran -sts list- from the Menu  first you would also have seen these options in the Options pane.)

A personal note: When I start to use a new command, I  open -help- and scroll down to the examples before reading anything else. Only then do I go back and look at the details. In version 12, I open the reference manual (link at the top of -help- ), because it is easier to read. 


On Jun 7, 2012, at 7:53 AM, Watson, Shashi wrote:

Dear Statalisters

I would like to access and store the failure function that is output from sts list.  It does not appear to be an r-class nor e-class command.  

For example, after I stset my survival data:

stset followup, failure(hvevent) 

I can see the data I want using 

sts list, failure at(2 2)

under Failure Function.  I want to access the Kaplan-Meier failure function at t=2.  

And a separate, related query:  is it possible to  output the failure function at only one time value?  The help for using "at" in sts list does not mention this, hence I used at (2 2) as above but I imagine there must be a better way.

This is my first query to statalist so apologies if I'm not asking in the clearest way.

Thanks, Shashi

*   For searches and help try:

*   For searches and help try:

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