Søren Højsgaard wrote:
> I want to numerically maximize a function with optim (maximization
> over several arguments). optim() needs a function which returns a
> scalar only. However, it could be nice to be able to "take other
> things out" from the function as well. I'tried to create an attribute
I want to numerically maximize a function with optim (maximization over several
arguments). optim() needs a function which returns a scalar only. However, it
could be nice to be able to "take other things out" from the function as well.
I'tried to create an attribute to the scalar with what I wa