[R] using optim

Duncan Murdoch murdoch at stats.uwo.ca
Sat Jan 2 12:47:33 CET 2010


On 01/01/2010 11:45 PM, Erin Hodgess wrote:
> Dear R People:
> 
> I know that you can use "optim" for a function with several parameters.
> 
> Is there an equivalent for 2 functions, please?  Or should I put
> together a finite difference type of matrix, etc., please?

What is the goal?  optim optimizes a scalar value.  If you have a length 
2 vector to "optimize", what does that mean?

Duncan Murdoch

> 
> Thanks,
> Happy New Year,
> Erin
> 
>



More information about the R-help mailing list