[R] Logistic Regression using optim() give "L-BFGS-B" error, please help

2008-09-29 Thread ashky
es error I am getting this error, Error in optim(start, fmin, gmin, X = x, y = y, w = wt, method = "L-BFGS-B", : L-BFGS-B needs finite values of 'fn' If you see, at each iteration I printed the X, beta, p, Deviance etc. But for certain start values this function is failing on me

[R] constrained logistic regression: Error in optim() with method = "L-BFGS-B"

2008-09-28 Thread ashky
-# logitregVR(x, y) I am getting this error, Error in optim(start, fmin, gmin, X = x, y = y, w = wt, method = "L-BFGS-B", : L-BFGS-B needs finite values of 'fn' I am really not sure whats causing this error, can someone please help me. Any comments/repl