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 <[email protected]>
To   [email protected]
Subject   Re: st: Transfer SAS codes to Stata code
Date   Thu, 18 Aug 2005 08:38:40 +0100

[email protected] 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index