HI Guojun, I struggled a little too with mle2, and had the same error message. It could be that the initial value you insert do not satisfy the assumption of the function you are trying to fit. It may be helpful if you say something more on it.
Cheers matteo. Il giorno 7 Nov 2011, alle ore 00:57, lgj200306 ha scritto: > Hi, all > I want to estimate four parameters using function mle2 (package bbmle). An > error produced as follows: >> Error in optim(par = c(10, 0.01, 0.1, 0), fn = function (p) : >> initial value in 'vmmin' is not finite > > At first,I thought it might be the problem of improper initial values. Then I > changed the initial values many times, but could not get the final result. > Sometimes, error produced as follows: >> Error in optim(par = c(100, 1, 0.1, 0.1), fn = function (p) : >> non-finite finite-difference value [4] > And sometimes, error message was the same as that produced in the first time > (initial value in 'vmmin' is not finite). > > I have searched in http://www.rseek.org/, but stil can not solve my problem. > Do I need to change the initial values again and again or do something else? > > Thanks for your attention and best wishes for you! > > Guojun Lin > South China Botanical Garden, Chinese Academy of Sciences, China > Department of Renewable Resources, University of Alberta, Canada > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-ecology mailing list > R-sig-ecology@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology _______________________________________________ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology