Bookmark and Share

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


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

Re: st: Hazard model with multiple entry AND time varying controls?


From   Steve Samuels <[email protected]>
To   [email protected]
Subject   Re: st: Hazard model with multiple entry AND time varying controls?
Date   Thu, 2 Feb 2012 07:58:12 -0500

Although the examples in the FAQ have one record per spell and person, you can use Stata's usual techniques for accommodating time-varying covariates. Here is a line of data from Section 3.2.4 of the FAQ entry:
        id     group   time0   time   status   number   size   str |
   4. |  4   placebo       0     10        0        5      1     1 

If covariates change between 0 & 10, you  split the follow-up time into spans within which they are constant. See the multiple-record examples in the manual entry for -stset-; the final section "Using survival time data in Stata";  the examples in the entry for -stsplit-; and the sections on time-varying covariates in the manual entry for -stcox-.  

Steve
[email protected]

On Feb 1, 2012, at 7:56 PM, Nick Eubank wrote:

Hi all,

Trying to run a hazard model with multiple ordered entry and time
varying controls. The only help I could find is this:
http://www.stata.com/support/faqs/stat/stmfail.html , but it doesn't
seem able to accommodate data in my format (where each individual has
different control variables for each year and can't be collapsed to a
single year).

To be specific, I have a time series of country regimes, and am
modeling transition from democracy to autocracy. Some countries "fail"
repeatedly after returning to democratic status. Control variables
(like income) are
time varying so I can't collapse to one line per event with an entry and
exit variable.

Any suggestions?

Thanks in advance!

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


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