[R] pass data to log-likelihood function

2008-09-04 Thread Jinsong Zhao
Hi there, When I do bootstrap on a maximum likelihood estimation, I try the following code, however, I get error: Error in minuslogl(alpha = 0, beta = 0) : object x not found It seems that mle() only get data from workspace, other than the boot.fun(). My question is how to pass the data to

Re: [R] pass data to log-likelihood function

2008-09-04 Thread Duncan Murdoch
On 9/4/2008 10:54 AM, Jinsong Zhao wrote: Hi there, When I do bootstrap on a maximum likelihood estimation, I try the following code, however, I get error: Error in minuslogl(alpha = 0, beta = 0) : object x not found It seems that mle() only get data from workspace, other than the boot.fun().