Mixed model Module freeze

Discuss the jamovi platform, possible improvements, etc.

by alancai1974 » Wed Jun 03, 2020 1:58 pm

Hi:
I have some problem when I use the mixed model module under GAMlj. when I use only a few covariate, It works fine. But when I Select around 10 Covariate, And click on the move Button, it become freeze for quite long time. I know it takes a while to do the calculation. But in the bluesky, the same calculation take about 1 minute. In jamovi, However, the window is freezing after more than 5 minutes. Is this a bug of the program?
alancai1974
 
Posts: 7
Joined: Sat May 16, 2020 1:19 pm

by mcfanda@gmail.com » Thu Jun 04, 2020 2:02 pm

Hi
I can try to check if it's a bug or just R taking its time if you share an example of models that create the problem.
thanks
mc
User avatar
mcfanda@gmail.com
 
Posts: 207
Joined: Thu Mar 23, 2017 9:24 pm

by alancai1974 » Fri Jun 05, 2020 3:29 pm

I send the omv file to your Gmail address. Please take a look at that. Thanks
alancai1974
 
Posts: 7
Joined: Sat May 16, 2020 1:19 pm

by mcfanda@gmail.com » Fri Jun 05, 2020 4:30 pm

Hi
I've tried the model you sent (with ten covariates), and on my computer (a standard laptop) takes about 1 second to run. That is with intercept and tightness also as random (please notice that the model is almost singular, due to the correlation between the random effects being -1).
If you tried to add other random effects and the calculation became abnormally long, it's probably (almost certainly) because the model does not converge
User avatar
mcfanda@gmail.com
 
Posts: 207
Joined: Thu Mar 23, 2017 9:24 pm

by mcfanda@gmail.com » Fri Jun 05, 2020 4:37 pm

Adding 5 random effects takes about 3 minutes, but the model is again singular. Please notice that gamlj mixed module, when the model is singular or does not converge, tries to change the optimizer to get better results, so it re-estimates the model again for each optimizer (there're three available). This can slow down the output appearance.

Nonetheless, I've also tried your model in R and both lmer() and Anova() are very fast with two random effects, and extremely slow when you add other random effects. Also in R you get a singular model. So I tend to exclude that we have a bug.
User avatar
mcfanda@gmail.com
 
Posts: 207
Joined: Thu Mar 23, 2017 9:24 pm

by alancai1974 » Sat Jun 06, 2020 12:42 pm

Thank you. I'm just wondering that, when this happened, is that possible for the program to show a warning, and give user the option to terminate the program if necessary. The biggest problem here is we don't know what happens when it freezes. It will be good to know and then take action appropriately.
alancai1974
 
Posts: 7
Joined: Sat May 16, 2020 1:19 pm

by hayaku » Thu Aug 13, 2020 5:15 pm

I concur. I have come here specifically due to this bug

Perhaps some form of loading % gauge would be helpful, with an opportunity to interrupt should the analysis be unfeasible? I recently tried to add variables one-by-one, and the load time went from <1 sec to 10 min+ as soon as the variables went from 4 to 5 or 6. I had assumed it was frozen so terminated the program. It was unresponsive, and canceling the analysis did not restore functionality (I had to Ctl+Alt+Del and terminate).
hayaku
 
Posts: 1
Joined: Thu Aug 13, 2020 5:08 pm


Return to General