Re: [R] help with the maxBHHH routine

2011-05-04 Thread Andrew Robinson
Hi Rohit, actually, the request for simple reproducible code means that you have to find the simplest possible representation of the problem. What happens if you simplify the observation level gradient and the likelihood function? Eg to trivial examples? If you still get the error, then simpl

Re: [R] help with the maxBHHH routine

2011-05-04 Thread Rohit Pandey
Hi Andrew, Ravi and Arne, Thank you so much for your prompt replies. I see that all of you mention the need for simple, reproducible code. I had thought of doing this, but the functions I was using for the observation level gradient and likelihood function were very long. I will paste them below h

Re: [R] help with the maxBHHH routine

2011-05-03 Thread Arne Henningsen
Dear Rohit On 3 May 2011 22:53, Rohit Pandey wrote: > Hello R community, > > I have been using R's inbuilt maximum likelihood functions, for the > different methods (NR, BFGS, etc). > > I have figured out how to use all of them except the maxBHHH function. This > one is different from the others

Re: [R] help with the maxBHHH routine

2011-05-03 Thread Ravi Varadhan
maxBHHH is *not* an in-built R function. It is in a distributed package called "maxLik". Always tell us which package is being used so that it is easier for us to help you. The error message says that the gradient function is returning a 10 x 2 matrix, whereas you say that you have 1000's of

Re: [R] help with the maxBHHH routine

2011-05-03 Thread Andrew Robinson
I suggest that you provide some commented, minimal, self-contained, reproducible code. Cheers Andrew On Wed, May 04, 2011 at 02:23:29AM +0530, Rohit Pandey wrote: > Hello R community, > > I have been using R's inbuilt maximum likelihood functions, for the > different methods (NR, BFGS, etc). >