Re: [R] a nlm question

2008-11-03 Thread Gabor Grothendieck
Read the last line on every message to r-help and particularly the part about providing reproducible examples. On Mon, Nov 3, 2008 at 8:10 AM, Jiang Peng <[EMAIL PROTECTED]> wrote: > Dear R listers, > >I posted this problem several days ago but it seems nobody answered. > >I use nlm to op

[R] a nlm question

2008-11-03 Thread Jiang Peng
Dear R listers, I posted this problem several days ago but it seems nobody answered. I use nlm to optimize a given function ,but it always generates the following warnings " Error in nlm(foo, theta.start) : non-finite value supplied by 'nlm' " I don't know why ,can anyb

[R] a nlm() question

2008-10-30 Thread Jiang Peng
Dear R listers, I have a very annoying problem using nlm(). I want to find the minimizer of my target function, if written in \LaTeX is f(\mu1,\mu2,\sigma1,\sigma2) = \sum_i^n( w_ig_t(z_i) ), where g_t(z) is a pdf of bivariate normal distribution and z_i is my samples. I cannot get