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]

From |
David Torres <torresd@umich.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: reordering within or reversing values across variables. |

Date |
Sat, 21 Aug 2010 12:42:05 -0400 |

The data are currently set up in the following way:

pubid interviewdate_ year_jobnum empid_ beginjob_ endjob_ 1 23jul1997 1997_ 1 1997_1 9701 02jul1997 23jul1997 1 1997_2 -4 1 1997_3 -4 1 1997_4 -4 1 1997_5 -4 1 1997_6 -4 1 1997_7 -4 1 17nov1998 1998_ 1 1998_1 9701 02jul1997 17nov1998 1 1998_2 -4 1 1998_3 -4 1 1998_4 -4 1 1998_5 -4 1 1998_6 -4 1 1998_7 -4 1 1998_8 -4 1 1998_9 -4 1 15dec1999 1999_ 1 1999_1 199902 15mar1999 15dec1999 1 1999_2 9701 02jul1997 08mar1999 1 1999_3 -4 1 1999_4 -4 1 1999_5 -4 1 1999_6 -4 1 1999_7 -4 1 1999_8 -4 1 1999_9 -4 1 11dec2000 2000_ 1 2000_1 199902 15mar1999 11dec2000 1 2000_2 -4 1 2000_3 -4 1 2000_4 -4 1 2000_5 -4 1 2000_6 -4 1 2000_7 -4 1 2000_8 -4 1 2000_9 -4 1 30dec2001 2001_ 1 2001_1 199902 15mar1999 30dec2001 1 2001_2 200102 08jan2001 30dec2001 1 2001_3 200103 08jan2001 03aug2001 1 2001_4 -4 1 2001_5 -4 1 2001_6 -4 1 2001_7 -4 1 2001_8 -4 1 16jan2003 2002_ 1 2002_1 199902 15mar1999 1 2002_10 -4 1 2002_11 -4 1 2002_2 200102 08jan2001 1 2002_3 -4 1 2002_4 -4 1 2002_5 -4 1 2002_6 -4 1 2002_7 -4 1 2002_8 -4 1 2002_9 -4 1 2003_ 1 2003_1 0 21feb2003 14nov2003 1 2003_10 -4 1 2003_2 -4 1 2003_3 -4 1 2003_4 -4 1 2003_5 -4 1 2003_6 -4 1 2003_7 -4 1 2003_8 -4 1 2003_9 -4 1 06dec2004 2004_ 1 2004_1 200103 21feb2003 06dec2004 1 2004_2 -4 1 2004_3 -4 1 2004_4 -4 1 2004_5 -4 1 2004_6 -4 1 2004_7 -4 1 28nov2005 2005_ 1 2005_1 200103 21feb2003 28nov2005 1 2005_2 -4 1 2005_3 -4 1 2005_4 -4 1 2005_5 -4 1 2005_6 -4 1 2005_7 -4 1 2005_8 -4 1 2005_9 -4 1 09nov2006 2006_ 1 2006_1 200103 21feb2003 09nov2006 1 2006_2 -4 1 2006_3 -4 1 2006_4 -4 1 2006_5 -4 1 2006_6 -4 1 2006_7 -4 1 2006_8 -4 1 2006_9 -4 1 17oct2007 2007_ 1 2007_1 200702 15nov2006 17oct2007 1 2007_2 200103 21feb2003 01jan2007 1 2007_3 -4 1 2007_4 -4 1 2007_5 -4 1 2007_6 -4 1 2007_7 -4 1 2007_8 -4 1 13oct2008 2008_ 1 2008_1 200702 15nov2006 13oct2008 1 2008_2 -4 1 2008_3 -4 1 2008_4 -4 1 2008_5 -4 1 2008_6 -4 1 2008_7 -4 1 2008_8 -4

I also have the data in original wide format. Thanks in advance for any advice or tips. Ciao, Diego Torres * * 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/

- Prev by Date:
**Re: st: RE: Has -browse- changed in Stata 11?** - Next by Date:
**st: RE: Remove part of a string variable** - Previous by thread:
**st: Remove part of a string variable** - Next by thread:
**st: dealing with high dimensional fixed effects** - Index(es):