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:28:10 +0000
If you do it this way, which is often good, you'd need to work around
the error.
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'
> }
>
>
> Brendan
>
> --
> Brendan Halpin, Department of Sociology, University of Limerick, Ireland
> Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F1-009 x 3147
> mailto:[email protected] http://www.ul.ie/sociology/brendan.halpin.html
>
> *
> * 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/
>
*
* 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/