Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: R: Duration models: database preparation


From   "Carlo Lazzaro" <carlo.lazzaro@tin.it>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: R: Duration models: database preparation
Date   Tue, 2 Oct 2007 09:23:51 +0200

Dear Nadia,

Sorry I can't work this issue out directly.
However, for more details and one example about Your question I would refer
You to the textbook by S. Juul. An Introduction to Stata for Health
Researchers. Stata Press, 2006: cap. 14 par 14.1 pp 209-211.

Kind Regards,

Carlo

Nadia wrote:

Hello

I know my question has an obvious response to some of you but I need
some insights. I'm preparing a database from a survey in which
individuals report their labour market status (employed, unemployed,
inactive, ...). My intent is to prepare this database to estimate
duration models on dismissed individuals and analye the influence of
some institutional changes on the duration of the unemployment spells.

I've been reading the book from Cleves et al. "An introduction to
Survival analysis using STATA" and the book from Colin Cameron and
Pravin Trivedi.

My question is the following: are the two following ways to organize
the data produce equal? After stset the first stabase, commands like
streg produce the same results in each of this cases.

1)

id      date0            date1       event
1      05/05/2005       10/05/2005     1
1      11/05/2005       16/05/2005     1
1      17/05/2005       18/05/2005     2
2      05/05/2005       10/05/2005     1
2      11/05/2005       16/05/2005     2



2)

id      spell(days)       event
1          11                2
2          10                2


Best regards,

Nádia




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



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index