The STATA mailing list has a way to identify runs of consecutive observations. With some googling, SAS can do the same thing. Here's how.
Suppose you want to figure out how many observations you have per GVKEY:
I write because I forget. 因為忘,所以寫下來.
The STATA mailing list has a way to identify runs of consecutive observations. With some googling, SAS can do the same thing. Here's how.
Suppose you want to figure out how many observations you have per GVKEY: