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


From   "Jesper B. Sorensen" <sorensen@MIT.EDU>
Subject   Re: st: STPIECE
Date   Mon, 24 May 2004 13:55:29 -0400

stpiece is designed to estimate a piecewise constant model for specified intervals of the time at risk - or "analysis time" as Stata calls it -- in other words the time variable you specify with stset, including any origin time declarations etc. If your analysis time is AGE, then you just need to stset with that and run stpiece.

If you want to include age as an additional covariate (but not as a measure of time at risk) in a piecewise fashion (i.e., with dummies for intervals), look at stsplit, which will split the spells at the right points. You can then create the dummies and run stpiece.

Hope this helps.


At 01:38 PM 5/24/2004 -0400, you wrote:

Hi Everyone,

I want to run a piecewise exponential and I am not sure how to STSET the
data set before running STPIECE.  How do I let the program know which
variable I want to base the time pieces on?

When I run STREG I do the following: stset timevar (timetrend),
failure(death) id(companyid).

I want to use another variable AGE on which to define the time
pieces...Can I do that? and if so How?

Thanks Muchly,

Elizabeth Boyle
Hofstra University

*   For searches and help try:
Jesper B. Sørensen
Richard S. Leghorn (1939) Associate Professor of Strategic Management
Sloan School of Management
Massachusetts Institute of Technology
Cambridge, MA 02142
(617) 253 7945 -- voice
(617) 253 2660 -- fax

* For searches and help try:

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