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

2011-07-01 Thread S Ellison
al Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Edward Bowora > Sent: 01 July 2011 01:46 > To: r-help > Subject: [R] Help fix last line of my optimization code > > Hi > > I need help figure out how to fix my co

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

[R] Help fix last line of my optimization code

2011-07-01 Thread Edward Bowora
Hi I need help figure out how to fix my code. When I call into R >optimize(llik,init.params=F) I get this 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) My data and my code looks like