Re: [R] R: Help; error in optim

2012-04-15 Thread Berend Hasselman
On 16-04-2012, at 07:04, Christopher Kelvin wrote: > Hello, > When i run the code below from Weibull distribution with 30% censoring by > using optim i get an error form R, which states that > > > Error in optim(start, fn = z, data = q, hessian = T) : > objective function in optim evaluates

[R] R: Help; error in optim

2012-04-15 Thread Christopher Kelvin
Hello, When i run the code below from Weibull distribution with 30% censoring by using optim i get an error form R, which states that Error in optim(start, fn = z, data = q, hessian = T) :    objective function in optim evaluates to length 25 not 1 can somebody help me remove this error. Is my