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
______________________________________________
[email protected] 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.