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

st: Quick forvalues question


From   "Yvonne Capstick" <[email protected]>
To   [email protected]
Subject   st: Quick forvalues question
Date   Wed, 19 Jan 2005 18:38:51 -0500

Hi,

I've a quick and embarrassingly simple question on forvalues.

I know that you can type forvalues x = 10/20 to get 10, 11, ... 20
and you can type forvalues x = 10(2)20 to get 10, 12, 14, ... 20

However, can I combine the two? I would like a list 10 12 14 16 18 20 30 40 41 ... 49 50

and would like to type forvalues x = 10(2)20 30 40/50, but this doesn't work. I know that I can still do what I want to by having three separate 'forvalues' loops, but does anyone know of a way in which I can combine everything into one?

Thanks,
Yvonne

_________________________________________________________________
Don�t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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