Displaying 1 result from an estimated 1 matches for "myfxn2".
Did you mean:
myfun2
2009 Sep 08
1
optim() argument scoping: passing parameter values into user's subfunction
Dear useRs,
I have a complicated function to be optimized with optim(), and whose
parameters are passed to another function within its evaluation. This
function allows for the parameters to enter as arguments to various
probability distribution functions.
However, I am violating some scoping convention, as somewhere within the
hierarchy of calls a variable is not visible. I will give a