Re: [R] question on optim() fn.

2010-10-21 Thread Ravi Varadhan
of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: sharkoil whitewhale2...@gmail.com Date: Thursday, October 21, 2010 1:09 am Subject: Re: [R] question on optim() fn. To: r-help@r-project.org

Re: [R] question on optim() fn.

2010-10-20 Thread Ravi Varadhan
] On Behalf Of sharkoil Sent: Tuesday, October 19, 2010 11:55 PM To: r-help@r-project.org Subject: [R] question on optim() fn. i am trying to use optim() fn in R to estimate mle of my pdf. even though I am able to get the results, but there are always warning message, which says that NaN produced

Re: [R] question on optim() fn.

2010-10-20 Thread sharkoil
Hi Ravi, Thanks a lot for your informations. I think you are right. Without the constraints of the parameters, it's easy to get the NaN Produced warning message. The pdfs I worked on are Burr, Lognormal and Inverse Gaussian distributions. Lognormal distribution is ok, but I always have warning

[R] question on optim() fn.

2010-10-19 Thread sharkoil
i am trying to use optim() fn in R to estimate mle of my pdf. even though I am able to get the results, but there are always warning message, which says that NaN produced. I am not very sure if I should ignore these warning message since I have got solution without error message. I am wondering