Re: [R] optimization problem

From: Ben Bolker <bolker_at_ufl.edu>
Date: Sat, 29 Nov 2008 21:04:46 +0000 (UTC)

tedzzx <zengzhenxing <at> gmail.com> writes:

>
>
> Hi, all
>
> I am facing an optimization problem. I am using the function optim(par,fun),
> but I find that every time I give different original guess parameter, I can
> get different result. For example
> I have a data frame named data:
> head(data)
> price s x t
> 1 1678.0 12817 11200 0.1495902
> 2 1675.5 12817 11200 0.1495902
> 3 1678.0 12817 11200 0.1495902
> 4 1688.0 12817 11200 0.1495902
> 5 1677.0 12817 11200 0.1495902
> 6 1678.5 12817 11200 0.1495902
> …….
> …….
> …….
   

  Can you post the whole data set somewhere (on the web if it's big, here if it's say < 100 lines)? That way your problem would be reproducible ...

  cheers
    Ben Bolker



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 29 Nov 2008 - 21:06:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 29 Nov 2008 - 21:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive