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

st: How to add a records to panel data


From   xiao yi <[email protected]>
To   [email protected]
Subject   st: How to add a records to panel data
Date   Tue, 19 Apr 2005 08:56:45 -0700 (PDT)

I have an unbalanced panel data(cross-setion and
time-series) which looks like below:

ID   year  x1   x2
1    1993  ..   ..
1    1994  ..   ..
1    1995  ..   ..
2    1995  ..   ..  
2    1996  ..   ..
2    1997  ..   ..
3    1993  ..   ..
3    1994  ..   ..
3    1995  ..   ..

The data is about firms' survival analysis. The last
year of my sample is 2003. In the example above, firm
1 dies in 1996 because the last year of this firm
is 1995 and firm 2 dies in 1998, and so on. I want to
add a record at the end of each subject (firm)
indicating the year when the fird dies. Can anyone
tell me how to accomplish this? Thank you in advance.

Xiaoyi



		
__________________________________ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index