On 3/2/2006 2:52 PM, Prof Brian Ripley wrote:
> I think the cost is small, and have just added this.
Thank you!
Duncan Murdoch
>
> On Thu, 2 Mar 2006, Duncan Murdoch wrote:
>
>> If I name the elements of the vector of initial values passed to
>> optim(), then it attaches the names to the final
I think the cost is small, and have just added this.
On Thu, 2 Mar 2006, Duncan Murdoch wrote:
> If I name the elements of the vector of initial values passed to
> optim(), then it attaches the names to the final result, e.g.
>
> > f <- function(parms) (parms[1]-1)^2+(parms[2]-2)^2
> > optim(c(x=