]
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
] 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 gunter.ber...@gene.com
on Tue, 2 Dec 2014 14:03:44 -0800 writes:
Yes
: 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 gunter.ber...@gene.com
on Tue, 2 Dec 2014 14:03:44 -0800 writes
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
?try
Or
?tryCatch
Bert
Sent from my iPhone -- please excuse typos.
On Dec 2, 2014, at 12:57 PM, Ramiro Barrantes ram...@precisionbioassay.com
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.
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.
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
!
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 typos
, 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.
On Dec 2, 2014, at 12:57 PM, Ramiro Barrantes ram...@precisionbioassay.com
9 matches
Mail list logo