Skip to content
Prev 155008 / 398506 Next

pass data to log-likelihood function

On 9/4/2008 10:54 AM, Jinsong Zhao wrote:
This is the way R does scoping.  Your ll function was defined in the 
global environment, so that's where it will look for x, n and r.  If you 
want it to look at the local variables in boot.fun, then you should 
define it in boot.fun.

Duncan Murdoch