SnowManPaddington
2009-Jan-29 21:54 UTC
[R] Optim error: initial value in 'vmmin' is not finite
Error in optim(method = "BFGS", c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : initial value in 'vmmin' is not finite I am running a logit model with latent class segments. I successfully got estimates for 2 segments. However when I tried to increase the no. of segments, I got this error message at the end. I checked my code again but can't find anything wrong. Is this error message related to something different from the code? Is that anything to do with the initial value? what does vmmin mean exactly? Thanks a lot!! -- View this message in context: http://www.nabble.com/Optim-error%3A-initial-value-in-%27vmmin%27-is-not-finite-tp21736737p21736737.html Sent from the R help mailing list archive at Nabble.com.
SnowManPaddington <wiwiana <at> gmail.com> writes:> > > Error in optim(method = "BFGS", c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, : > initial value in 'vmmin' is not finite > > I am running a logit model with latent class segments. I successfully got > estimates for 2 segments. However when I tried to increase the no. of > segments, I got this error message at the end. I checked my code again but > can't find anything wrong. Is this error message related to something > different from the code? Is that anything to do with the initial value? what > does vmmin mean exactly? >As the error message says, there is a problem computing the initial values for the model fitting procedure. These initial values may be hidden within the code you are using. Please read the posting guide -- we need a lot more information before we can help you. If at all possible provide a reproducible example, and tell us what packages/functions you are using (and the output of sessionInfo() ). good luck Ben Bolker
Possibly Parallel Threads
- error: optim(rho, n2ll.rho, method = method, control = control, beta = parm$beta, : initial value in 'vmmin' is not finite
- initial value in 'vmmin' is not finite
- error in optim, within polr(): "initial value in 'vmmin' is not finite"
- initial gradient and vmmin not finite
- polr() error message wrt optim() and vmmin