> You definitely want the data in long form here . . .
Yeah, that was my first inclination, too. But the IDs are eight characters
long. Things like -reshape-, -sort- -egen-, -by id:-, and perhaps even compare
var[_n] to var[_n-1], require a few minutes' patience when surveys get large.
Keeping it wide often scales better in these circumstances.
All of the missing values in the OP's excerpt listing are monotonically missing
on the right. I took the liberty of construing that as indicating a natural
termination of the run sooner in some individuals than in others. But a
missing-in-the-middle would mean that missing is an unobserved state. If that's
what missing means in this dataset, then all of our suggestions are wrong.
Joseph Coveney
*
* 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/