Re: [R] Help fix last line of my optimization code

2011-07-01 Thread S Ellison
You need to read the help page for optimize. Again, if you already have ;-) The error message >Error in optimize(llik, init.params = F) : element 1 is empty; >the part of the args list of 'min' being evaluated was: >(interval) is telling you that the parameter (interval) required by o

Re: [R] Help fix last line of my optimization code

2011-07-01 Thread Uwe Ligges
Please a) read the posting guide b) really submit reproducible code. Yours is not. c) read ?optimize and learn to specify the interval d) you specified an argument init.params, but that is not used in optimize() nor can it be usefully passed to llik. Uwe Ligges On 01.07.2011 02:46, Edward B