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   Prakash Singh <prakashbhu@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   Re: st: loop
Date   Tue, 22 Oct 2013 14:38:01 +0530

I think  this will do good
bys country: table indicator2  year, c(mean value), if year>=2009 & year<.

Regards
Prakash

On Tue, Oct 22, 2013 at 2:14 PM, Abu Camara <abucamara@gmail.com> 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