Skip to content
Prev 313885 / 398506 Next

multi dimensional optim problem

Forgot to cc the help list.
On 18-12-2012, at 19:40, Lu, James T wrote:

            
optim  treats parameter b_0 as a vector and passes as such to the function it is trying to optimize.
So in log.like you should convert b1 back to a matrix of the correct dimensions like so

  b1 <- matrix(b1,nrow=10)

Then it should work.
Note: you haven't provided function softmax.

Berend