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]
st: Problem with looping when executing command
From
"Kim, Isok" <[email protected]>
To
"[email protected]" <[email protected]>
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/