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 <>
Subject   Re: st: Transfer SAS codes to Stata code
Date   Thu, 18 Aug 2005 08:38:40 +0100 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.
Christian Holz
Department of Sociology
University of Glasgow
Scotland, U.K.
* For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index