[R] Optim error: initial value in 'vmmin' is not finite

0 views
Skip to first unread message

SnowManPaddington

unread,
Jan 29, 2009, 4:54:18 PM1/29/09
to r-h...@r-project.org

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.

______________________________________________
R-h...@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Ben Bolker

unread,
Jan 29, 2009, 5:20:53 PM1/29/09
to r-h...@stat.math.ethz.ch
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

Reply all
Reply to author
Forward
0 new messages