Re: [R] optim() argument scoping: passing parameter values into user's subfunction

2009-09-09 Thread Bert Gunter
: passing parameter values into user's subfunction Szumiloski, John wrote: > > 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 parameter

Re: [R] optim() argument scoping: passing parameter values into user's subfunction

2009-09-08 Thread Ben Bolker
Szumiloski, John wrote: > > 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.