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

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

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

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

2010-10-20 Thread Ravi Varadhan
roject.org] 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 Na

[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

Re: [R] question on "optim"

2010-09-15 Thread Hey Sky
thanks. Ravi and Nash. I will read the new package and may use it after I am familiar with it. I may bother both of you when I have questions.thanks for that in advance. Nan from Montreal Hi Nan, You can take a look at the "optimx" package on CRAN. John Nash and I wrote this package t

Re: [R] question on "optim"

2010-09-08 Thread Ravi Varadhan
ailto:pbar...@infolink.com.br] Sent: Wednesday, September 08, 2010 4:26 PM To: Ravi Varadhan Cc: 'Hey Sky'; 'Ben Bolker'; r-h...@stat.math.ethz.ch Subject: Re: [R] question on "optim" Dear R-list members, I am using R 2.11.1 on Windows XP. When I try to install package "op

Re: [R] question on "optim"

2010-09-08 Thread Paulo Barata
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Hey Sky Sent: Tuesday, September 07, 2010 2:48 PM To: Ben Bolker; r-h...@stat.math.ethz.ch Subject: Re: [R] question on "optim" thanks. Ben after read your email, I realized th

[R] question on "optim"

2010-09-08 Thread nashjc
age, but be warned that it is an F1 race car relative to the Chevy of Rvmmin. Very good when set up right, but sometimes tricky to set up. John Nash > Message: 33 > Date: Tue, 7 Sep 2010 07:38:55 -0700 (PDT) > From: Hey Sky > To: R > Subject: [R] question on "optim&quo

Re: [R] question on "optim"

2010-09-08 Thread Ravi Varadhan
ge- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Hey Sky Sent: Tuesday, September 07, 2010 2:48 PM To: Ben Bolker; r-h...@stat.math.ethz.ch Subject: Re: [R] question on "optim" thanks. Ben after read your email, I realized the initial value of w[

Re: [R] question on "optim"

2010-09-07 Thread Ben Bolker
On 10-09-07 02:48 PM, Hey Sky wrote: > thanks. Ben > > after read your email, I realized the initial value of w[5]=0 is a > stupid mistake. and I have changed it. but I am sorry I cannot > reproduce the result, convergence, as you get. the error message is > . any suggestion about > it? When I

Re: [R] question on "optim"

2010-09-07 Thread Hey Sky
, such as tips for setup gradient and others, or common mistakes? thanks Nan - Original Message From: Ben Bolker To: r-h...@stat.math.ethz.ch Sent: Tue, September 7, 2010 11:15:43 AM Subject: Re: [R] question on "optim" Hey Sky yahoo.com> writes: > I do

Re: [R] question on "optim"

2010-09-07 Thread Ravi Varadhan
. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: Hey Sky Date: Tuesday, September 7, 2010 10:40 am Subject: [R] question on "optim" To: R > Hey, R users > > I do not know how to describe my question. I am a new user for R and > write the

Re: [R] question on "optim"

2010-09-07 Thread Hey Sky
AM Subject: [R] question on "optim" Hey, R users I do not know how to describe my question. I am a new user for R and write the following code for a dynamic labor economics model and use OPTIM to get optimizations and parameter values. the following code does not work due to the equat

Re: [R] question on "optim"

2010-09-07 Thread Ben Bolker
Hey Sky yahoo.com> writes: > I do not know how to describe my question. I am a new user for R and > write the > following code for a dynamic labor economics model and use OPTIM to get > optimizations and parameter values. the following code does not work due to > the equation: > >    wden[,i]

[R] question on "optim"

2010-09-07 Thread Hey Sky
Hey, R users I do not know how to describe my question. I am a new user for R and write the following code for a dynamic labor economics model and use OPTIM to get optimizations and parameter values. the following code does not work due to the equation:    wden[,i]<-dnorm((1-regw[,i])/w[5])/w[