Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: loop


From   - <dimpol7@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: loop
Date   Mon, 15 Oct 2012 10:36:14 +0100

hello and thank you,
I did use stata help and tried forvalues many times before posting on
here, but for some reason I can't get it to work, so there must be
something in my code. I will post the code on here tomorrow and see if
anyone can spot what I'm doing wrong.

On 13 October 2012 09:59, Justina Fischer <JAVFischer@gmx.de> wrote:
> Hi Dimpol,
>
> Muhammad is right, this is in principle quite easy, and you could have found this out with the sources available to you, e.g. by googling 'stata' and 'loop'.
>
> Sometimes people on this list do not answer because they think you can find out yourself.
>
> The typical example is:
>
> forvalues i = 1/10 {
>
> display " `i' "
>
> }
>
>
> In place of 'display', you can also run a regression or make a graph.
>
> HTH
>
> Justina
>
>
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index