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   Abu Camara <[email protected]>
To   [email protected]
Subject   Re: st: loop
Date   Tue, 22 Oct 2013 12:14:10 +0300

Thanks Prakash Singh. That is exactly what I want. Works perfect.

On 22 October 2013 12:08, Prakash Singh <[email protected]> wrote:
> 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 <[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/



-- 
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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index