Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Antoine Terracol <Antoine.Terracol@univ-paris1.fr> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: error in forval? |
Date | Wed, 20 Oct 2010 13:39:23 +0200 |
Try the following forvalues i=1(1)6{ local k=`i'+1 forvalues j= `k' /7{ prtest FLAG_ChoseBestHosp1 if ( BG_Condition_recode==`i'| BG_Condition_recode==`j'), by( BG_Condition_recode) } } Antoine On 20/10/2010 13:29, helen bian wrote:
Dear all, Could any one point to me what the problem is in the following for loop, please? forvalues i=1(1)6{ forvalues j= `i'+1 /7{ prtest FLAG_ChoseBestHosp1 if ( BG_Condition_recode==`i'| BG_Condition_recode==`j'), by( BG_Condition_recode) } } Many thanks for all the hep. Best wishes, Haiyan * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
-- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/