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: Re: [question on -gammafit- and -pgamma-]
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Re: [question on -gammafit- and -pgamma-]
Date
Tue, 8 Mar 2011 10:29:40 +0000
If you do it this way, which is often good, you'd need to work around
the error. Whatever you do with each set of results should be
conditional on a zero return code.
if _rc == 0 {
}
> On Tue, Mar 8, 2011 at 10:23 AM, Brendan Halpin <[email protected]> wrote:
>> On Tue, Mar 08 2011, Peter Maclean wrote:
>>
>>> forval i = 1/50 {
>>> gammafit y if group == `i'
>>> }
>>> How can I tell Stata to move one when some of model do not converge? For
>>> example, the first 12 models may converge and the 13th model may not converge.
>>> When it happens, Stata stops. I would like Stata to move on to the 14th.
>>
>> Does this do what you want?
>>
>> forval i = 1/50 {
>> capture gammafit y if group == `i'
>> }
>>
>>
*
* 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/