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]

st: Survival Analysis for Panel Data


From   ajjee <[email protected]>
To   [email protected]
Subject   st: Survival Analysis for Panel Data
Date   Tue, 15 Mar 2011 05:39:13 -0700 (PDT)

Dear All

I have a panel dataset in the form

Firm   	year		id		id2	     event	time_elapsed
1		1980		1		1		1		0
1		1981		2		2		1		0
1		1982		2		2		0		1
1		1983		3		3		1		0
1		1984		3		3		0		1
1		1985		4		4		1		0
1		1986		4		4		0		1
1		1987		4		4		0		2
1		1988		4		4		0		3
1		1989		5		5		1		0
1		1990		5		5		0		1
2		1980		6		1		1		0
2		1981		6		1		1		1
2		1982		6		1		0		2
2		1983		6		1		0		3
2		1984		6		1		0		4
2		1985		6		1		0		5
2		1986		6		1		0		6
2		1987		7		2		1		0
2		1988		7		2		0		1
2		1989		7		2		0		2
2		1990		7		2		0		3

here id: overall id in the dataset
      id2: id by the firm
I'm interested when the event took place that is event==1. event is removal
of CEO. 

But I don't know how to set the data for survival analysis as it has firm
and id both. Should I use id or id2?

ajjee





--
View this message in context: http://statalist.1588530.n2.nabble.com/Survival-Analysis-for-Panel-Data-tp6172637p6172637.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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