[R] optimization problem

Ben Bolker bolker at ufl.edu
Sat Nov 29 22:04:46 CET 2008


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



More information about the R-help mailing list