Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

re: st: how to generate a variable as follow


From   David Airey <[email protected]>
To   [email protected]
Subject   re: st: how to generate a variable as follow
Date   Tue, 6 Jan 2004 13:24:06 -0600

x
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6

how can i get it.thank you!
Hey! A question even I can answer! Try:

set obs 18
egen x = seq(), from(1) to(6) block(1)

If you don't have manuals, you really should visit this site:

http://www.ats.ucla.edu/stat/stata/

You can get help for commands online there. Type "help egen" in the field.

-Dave

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* 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