Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: sub-dataset by variable numbers


From   "Jian'an Luan" <[email protected]>
To   <[email protected]>
Subject   st: sub-dataset by variable numbers
Date   Tue, 2 Oct 2007 12:04:55 +0100

Dear Statalist

I wonder if I can select a sub-dataset by variables without given
variable names but using variable numbers, something like the command
when select a sub-dataset by observations ".keep if _n>1001 & _n<2000".
 
Any help will be appreciated.
 
Jianan

*
*   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