Re: [R] How to catch errors regarding the hessian in 'optim'

2013-09-26 Thread William Dunlap
conditionMessage(e). Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Michael Meyer > Sent: Thursday, September 26, 2013 8:50 AM > To: r-help@r-project.org &

[R] How to catch errors regarding the hessian in 'optim'

2013-09-26 Thread Michael Meyer
I am weighing in even though I know nothing. in tryCatch define an error handler error = function(e){ text <- print(e)    # surely there must be better ways # parse text for substring 'optim' or more strongly characteristic substrings # you have already seen to emerge from

Re: [R] How to catch errors regarding the hessian in 'optim'

2013-09-02 Thread Simon Zehnder
ikely help to sort out your troubles. > > JN > > > On 13-09-02 06:00 AM, r-help-requ...@r-project.org wrote: >> Message: 10 >> Date: Sun, 1 Sep 2013 17:09:35 +0200 >> From: Simon Zehnder >> To: R-help help >> Subject: [R] How to catch errors regarding the h

Re: [R] How to catch errors regarding the hessian in 'optim'

2013-09-02 Thread Prof J C Nash (U30A)
-help-requ...@r-project.org wrote: Message: 10 Date: Sun, 1 Sep 2013 17:09:35 +0200 From: Simon Zehnder To: R-help help Subject: [R] How to catch errors regarding the hessian in 'optim' Message-ID: Content-Type: text/plain; charset=us-ascii Dear R-Users and R-Developers, in a comparison b

[R] How to catch errors regarding the hessian in 'optim'

2013-09-01 Thread Simon Zehnder
Dear R-Users and R-Developers, in a comparison between two different estimation approaches I would like to catch errors from optim regarding the hessian matrix. I use optim with method = "L-BFGS-B" thereby relying on numerical differentiation for the hessian matrix. I do know, that the estimati