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]

st: Problem with looping when executing command


From   "Kim, Isok" <isokkim@buffalo.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Problem with looping when executing command
Date   Thu, 4 Oct 2012 21:00:58 -0400

Hi,

I'm having trouble with running exactly same syntax with different subgroups. Analysis on one group runs just fine, but when I execute same syntax with another group, it just keeps looping without doing anything. I never encountered this in Stata.  I don't know if it'll be helpful but I'm pasting one set of command lines that works and another that doesn't:

/*nbreg: cardio overall*/
set more off
svy, subpop(subsdh): nbreg cardio AGE i.female i.married i.ed3cat ib3.as4cat i.generation ///
								  i.poverty i.no_ins discr i.ELP srph bias, irr

/*nbreg: cardio Vietnamese*/
set more off
svy, subpop(subsdh if as4cat==1): nbreg cardio AGE i.female i.married i.ed3cat i.generation ///
								   i.poverty i.no_ins discr i.ELP srph bias, irr

I know I'm being cryptic here, but that's just it - I don't know how to explain the error without any feedback from the Stata... Any ideas???

Thanks a bunch!
isok

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