Re: [R] Fitting Mixture distributions

2016-09-13 Thread Aanchal Sharma
Yes, I mentioned it wrong , I increased the value. This did not help either. what helped is removing some samples which had zero (close to zero) values. So its working fine for this error. But there is another problem. For one of the genes it says throws following error: iteration = 1 log-lik

Re: [R] Fitting Mixture distributions

2016-09-12 Thread Bert Gunter
Do you mean "increase the convergence value." Decreasing it should make it harder to converge (I believe, depending on exactly how "convergence vaue" is defined, so doublecheck.) -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into

Re: [R] Fitting Mixture distributions

2016-09-12 Thread Aanchal Sharma
Thanks for the reply. I have another related issue with Gamma mixture model. here is the description: I am trying to fit a 2 component gamma mixture model to my data (residual values obtained after running Generalized Linear Model), using following command (part of the code): expr_mix_gamma <-

Re: [R] Fitting Mixture distributions

2016-09-08 Thread Martin Maechler
> Bert Gunter > on Wed, 7 Sep 2016 23:47:40 -0700 writes: > "please suggest what can I do to resolve this > issue." > Fitting normal mixtures can be difficult, and sometime the > optimization algorithm (EM) will get stuck with very slow

Re: [R] Fitting Mixture distributions

2016-09-08 Thread Bert Gunter
"please suggest what can I do to resolve this issue." Fitting normal mixtures can be difficult, and sometime the optimization algorithm (EM) will get stuck with very slow convergence. Presumably there are options in the package to either increase the max number of steps before giving up or make

Re: [R] Fitting Mixture distributions

2016-09-08 Thread Aanchal Sharma
Hi Simon I am facing same problem as described above. i am trying to fit gaussian mixture model to my data using normalmixEM. I am running a Rscript which has this function running as part of it for about 17000 datasets (in loop). The script runs fine for some datasets, but it terminates when

[R] Fitting Mixture distributions

2013-07-16 Thread Tjun Kiat Teo
I was trying to use the normixEM in mixtools and I got this error message. And I got this error message One of the variances is going to zero; trying new starting values. Error in normalmixEM(as.matrix(temp[[gc]][, -(f + 1)])) : Too many tries! Are there any other packages for fitting mixture

Re: [R] Fitting Mixture distributions

2013-07-16 Thread Rui Barradas
Hello, Try the following. library(sos) findFn('fitting mixture distribution') It found several other packages. Hope this helps, Rui Barradas Em 16-07-2013 21:59, Tjun Kiat Teo escreveu: I was trying to use the normixEM in mixtools and I got this error message. And I got this error

Re: [R] Fitting Mixture distributions

2013-07-16 Thread Simon Zehnder
Hi Tjun Kiat Teo, you try to fit a Normal mixture to some data. The Normal mixture is very delicate when it comes to parameter search: If the variance gets closer and closer to zero, the log Likelihood becomes larger and larger for any values of the remaining parameters. Furthermore for the EM