Re: [R] problem with optim and integrate

2008-03-21 Thread Uwe Ligges
kathie wrote: Dear all, I want to min integrate( (p1*dnorm+p2*dnorm+p3*dnorm)^(1.3)) for p, mu, and sigma. So, I have to estimate 8 parameters(p3=1-p1-p2). I got this warning-Error in integrate(numint, lower = -Inf, upper = Inf) : non-finite function value. My questions are How

[R] problem with optim and integrate

2008-03-19 Thread kathie
Dear all, I want to min integrate( (p1*dnorm+p2*dnorm+p3*dnorm)^(1.3)) for p, mu, and sigma. So, I have to estimate 8 parameters(p3=1-p1-p2). Sometimes I got some results, but it was bad, sometimes, I got this warning-Error in integrate(numint, lower = -Inf, upper = Inf) : non-finite function