![]() |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: variable that counts double observations..
From
Linn Renée Naper <[email protected]>
To
<[email protected]>
Subject
st: variable that counts double observations..
Date
Wed, 12 Nov 2008 12:06:26 +0100
Hi Statalist
egen var=_n, by(group) will give me a variable counting from 1 til N within each group of the data.
BUT: how do I tell stata that the observations are double in the sense that I need a variable that repeats each number ones,
like this: 11 22 33 44.... instead of 1 2 3 4.....
I need this variable in order to collapse the data.
Thanks
*
* 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/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |