Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: loop


From   Giacomo Pallaro <[email protected]>
To   [email protected]
Subject   Re: st: loop
Date   Tue, 22 Oct 2013 12:34:34 +0200

Dear Abu,

I think that " help forvalues " is what you need to write in the
command window to solve your problem.

best wishes,
Giacomo

On Tue, Oct 22, 2013 at 10:44 AM, Abu Camara <[email protected]> wrote:
> Dear Statalist,
>
> I would like to write the following code in the form of a loop for 50
> countries coded from (1 to 50)
> instead writing the below code 50 times. Any help would be appreciated.
>
>
> table indicator2  year, c(mean value), if country==1  & year>=2009 & year<.
>
> --
> Best Wishes,
> Abu Camara
> *
> *   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/
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index