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

Re: st: Transfer SAS codes to Stata code


From   Christian Holz <statalist@krueschan.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Transfer SAS codes to Stata code
Date   Thu, 18 Aug 2005 08:38:40 +0100

wying1@umbc.edu wrote:
> I use Stata 8.0. I haven't seen an example of doing loop by stata,
> and not sure of the right command to use.
> Can anybody give me a hint how to do this?

Sure, the Stata command -search loop- lists a couple of options for looping in Stata. Most often -foreach- and -while- are the ones.
There should also be plenty of hints in the Programming Manual.
Cheers,
Christian
---
Christian Holz
Department of Sociology
University of Glasgow
Scotland, U.K.
*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index