Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: RE: piece-wise constant exponential survival model again


From   "Jesper B. Sorensen" <sorensen@mit.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: RE: piece-wise constant exponential survival model again
Date   Mon, 15 Sep 2003 11:13:06 -0400

At 09:54 AM 9/15/2003 -0500, you wrote:
Thank you very much, Ben. But I also noticed that Prof. Stephen Jenkins
mentioned in that subject, that we simply need to split episode and create
dummy variables, and then include them in the exponential model estimated
using -streg-. As I said in the previous thread that the episodes were
already split into annual spells in the data set, so I wonder if stset and
streg commands are enough to solve the problem.
yes -- stpiece is just a wrapper that a) splits the spells if necessary (not in your case); b) creates the dummy variables for the time pieces; and c) estimates an exponential model without a constant (streg ..., d(exp) noconst). This can all be done manually of course, stpiece just cuts down on the typing and potential for mistakes.

//Jesper





Thanks.
tapes

----- Original Message -----
From: "Jann, Ben" <ben.jann@soz.gess.ethz.ch>
To: <statalist@hsphsun2.harvard.edu>
Sent: Friday, September 12, 2003 2:40 PM
Subject: st: RE: piece-wise constant exponential survival model


> Hi Tapes
>
> No, -streg ..., d(exp)- will estimate a "regular" exponential model.
> Check out -stpiece- by Jesper B. Sorensen.
>
> ben


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jesper B. Sørensen
Richard S. Leghorn (1939) Associate Professor of Strategic Management
Sloan School of Management
Massachusetts Institute of Technology
E52-581
Cambridge, MA 02142
http://web.mit.edu/sorensen/www/
(617) 253 7945  -- voice
(617) 253 2660  -- fax


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index