_
From: Martin Maechler [maech...@stat.math.ethz.ch]
Sent: Wednesday, December 03, 2014 3:26 AM
To: Bert Gunter
Cc: Ramiro Barrantes; r-help@r-project.org
Subject: Re: [R] How to have NLME return when convergence not reached
>>>>> Bert Gunter
>>>>> on Tue, 2 De
project.org] On Behalf Of Martin
> Maechler
> Sent: Wednesday, December 03, 2014 09:26
> To: Bert Gunter
> Cc: r-help@r-project.org; Ramiro Barrantes
> Subject: Re: [R] How to have NLME return when convergence not reached
>
> >>>>> Bert Gunter
> >>>>
>>
>> From: Bert Gunter [gunter.ber...@gene.com]
>> Sent: Tuesday, December 02, 2014 4:30 PM
>> To: Ramiro Barrantes
>> Cc: r-help@r-project.org
>> Subject: Re: [R] How to have NLME return when conver
com]
> Sent: Tuesday, December 02, 2014 4:30 PM
> To: Ramiro Barrantes
> Cc: r-help@r-project.org
> Subject: Re: [R] How to have NLME return when convergence not reached
>
> ?try
> Or
> ?tryCatch
>
> Bert
>
> Sent from my iPhone -- please excuse typos.
>
>&g
help!
From: Bert Gunter [gunter.ber...@gene.com]
Sent: Tuesday, December 02, 2014 4:30 PM
To: Ramiro Barrantes
Cc: r-help@r-project.org
Subject: Re: [R] How to have NLME return when convergence not reached
?try
Or
?tryCatch
Bert
Sent from my iPhone -- please excuse
Great suggestion!! Will give that a try.
From: William Dunlap [wdun...@tibco.com]
Sent: Tuesday, December 02, 2014 4:49 PM
To: Ramiro Barrantes
Cc: r-help@r-project.org
Subject: Re: [R] How to have NLME return when convergence not reached
You could try using
You could try using R.utils::withTimeout(expr, timeout=10) to cause an
error when evaluating the expression expr takes longer than 10 seconds.
Wrap that in tryCatch or try to catch the error and examine the outputs of
lapply for ones of class "TimeoutException" to find the ones that took too
long.
?try
Or
?tryCatch
Bert
Sent from my iPhone -- please excuse typos.
> On Dec 2, 2014, at 12:57 PM, Ramiro Barrantes
> wrote:
>
> Hello,
>
> I am trying to fit many hundreds of simulated datasets using NLME (it's all
> in a big loop in R). Some don't seem to converge. I am working on
> ad
Hello,
I am trying to fit many hundreds of simulated datasets using NLME (it's all in
a big loop in R). Some don't seem to converge. I am working on addressing the
issues by perhaps adjusting my simulation, or tweaking iteration steps in nlme,
etc. However, when it doesn't converge, NLME jus
9 matches
Mail list logo