[R] continue a loop after an error with confint

Gábor Csárdi csardi.gabor at gmail.com
Thu Oct 30 16:13:49 CET 2008


Yep, see ?"try"

Gabor

On Thu, Oct 30, 2008 at 4:10 PM, Benoit Boulinguiez
<benoit.boulinguiez at ensc-rennes.fr> wrote:
> Hi all,
>
> I've got a list (Reg3Lst) with 1000 nls regression results in it.
> I'd like to get the confidence interval of the parameters obtained with the
> nonlinear regressions. Thus I've used this:
>
> for (i in 1:1000)
>    {
>    foo<-list(foo,confint(Reg3Lst[[i]]))
>     }
>
> For some regressions the confidence interval is not estimated because of a
> singular gradient result. Then it stops the loop.
> Is that possible to continue the loop after an error returned by confint?
>
>
>
> Regards/Cordialement
>
> -------------
> Benoit Boulinguiez
> Ph.D
> Ecole de Chimie de Rennes (ENSCR) Bureau 1.20
> Equipe CIP UMR CNRS 6226 "Sciences Chimiques de Rennes"
> Avenue du Général Leclerc
> 35708 Rennes CEDEX 7
> Tel 33 (0)2 23 23 80 83
> Fax 33 (0)2 23 23 81 20
>  <http://www.ensc-rennes.fr/> http://www.ensc-rennes.fr/
>
>
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



-- 
Gabor Csardi <Gabor.Csardi at unil.ch>     UNIL DGM



More information about the R-help mailing list