pjq521 发表于 2013-5-28 16:17 
误于optim(params, LL, method = "BFGS", hessian = TRUE, control = list(fnscale = -1)) :
non-fin ...
> optim(c(1,2),logL,dat=dat)
Error in optim(c(1, 2), logL, dat = dat) :
function cannot be evaluated at initial parameters
In addition: Warning message:
In lapply(X = x, FUN = .Generic, ...) : NaNs produced
我这个怎么处理啊求助大神!