Skip to content
Prev 25043 / 63424 Next

optim bug (PR#9684)

On Tue, May 15, 2007 at 07:02:56PM +0100, Prof Brian Ripley wrote:
You can also use currying, like this:

	ll <- function(data) function(params)
	{
		# compute whatever you want with data and params.
	}

Then you can call optim like this:

	optim(initial.param, ll(some.data))

Cheers,
Andrew