Skip to content
Prev 258794 / 398502 Next

help with the maxBHHH routine

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 observations and 821 parameters.  Show us a simplified version of your problem.  It is difficult to help you without seeing an example. 

Also, try running w/o the gradient and see how it works.  This is not the answer you wanted, but we cannot help you w/o seeing your example.

Ravi.