Skip to content
Prev 308405 / 398503 Next

likelihood function involving integration, error in nlm

On 19-10-2012, at 04:40, stats12 wrote:

            
Before the call of nlm you should insert

ll(initial)

to check. You'll see that your function returns a vector and not a scalar as it should.
I guess that ll() should return sum(-lik) or better -sum(integ)

Berend