From | baum <[email protected]> |
To | StataList <[email protected]> |
Subject | st: generating sums |
Date | Sat, 17 Aug 2002 21:55:13 -0400 |
Rich asked
I have a data that looks like this: _obs_ _x_ _y_ 1 1 0 2 1 0 3 0 1 4 0 1 5 1 0 6 0 1 7 0 1 I want to generate a 'streak' variable that will make the data look like this: _obs_ _x_ _y_ _z_ _z2_ 1 1 0 1 0 2 1 0 2 0 3 0 1 0 1 4 0 1 0 2 5 1 0 1 0 6 0 1 0 1 7 0 1 0 2
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |