Re: [R] maximizing a likelihood function containing an integral

2006-09-11 Thread Ben Bolker
Sam Wong qxsr at yahoo.com writes: Hi, R Users; I am trying to maximize a likelihood function which contains an integral. The integral contains the unknown parameter as well. I am trying to use the following code to do the maximization: [snip] The error message is: Error in

[R] maximizing a likelihood function containing an integral

2006-09-08 Thread Sam Wong
Hi, R Users; I am trying to maximize a likelihood function which contains an integral. The integral contains the unknown parameter as well. I am trying to use the following code to do the maximization: ll-function(b.vec){ b0-b.vec[1] b1-b.vec[2] b2-b.vec[3]