Comments (3)
The iteration history suggests that your data have a flat (approximate) log-likelihood surface. This can be so because either you have too few clusters or to small clusters (I spuspect the latter).
Maybe you try setting maxit=83
. You may get a warning about non-convergence, but at least "preliminary" estimates.
from mclogit.
Hi Martin,
Thanks for the response. I have a few questions:
-
Sorry but what does a "flat (approximate) log-likelihood surface" mean exactly?
-
Maxit = 83 works as you say with the following error: "Algorithm did not convergeFitted probabilities numerically 0 occurred". I then use BIC(study1_fullModel) to obtain the BIC value. Can this value be trusted?
-
Where did "83" come from? When I remove the three way interaction to get the BIC value of the reduced model I encounter the convergence problem again so it would be useful if I could solve this solution myself in the future
I'm quite new to this type of analysis so apologies if these questions are basic.
Regards,
Matthew
from mclogit.
A log-likelihood function is flat if it does not have a maximum. This may occur e.g. when there is separation in logitistic regression. As a consequence, no maximum likelihood estimate exists. I write "(approximate)" because the (log-)likelihood function of logit models with random effects does not have a closed form.
"Algorithm did not converge Fitted probabilities numerically 0 occurred" is a warning and not an error. Nevertheless I would not trust BICs here, because the log-likehood function is only a rough approximation.
I suggested to set 'maxit=83' because this is the last iteration before the algorithm diverges. You may at least have finite (yet not very trustworthy) estimates then.
It seems that indeed you do not have enough data to be able to estimate the random effects variance reliably. A quick fix would be to try fitting a multinomial model without random effects but with overdisperision. There may also a very slight chance that trying mblogit(...,estimator="REML")
may help.
from mclogit.
Related Issues (20)
- Error with "predict" command in newest versions HOT 11
- `*tmp*`[[k]] : subscript out of bounds HOT 2
- Incorrect predictions from mblogit when predictors are scaled HOT 3
- mblogit model comparison with anova does not calculate degrees of freedom from random parameters HOT 3
- Problems with model definition HOT 1
- Error when using nested random terms HOT 1
- Error `'a' (<dimension1> x 1) must be square` HOT 3
- Error from `predict.mmblogit()` HOT 2
- Incorrect result by `predict.mmblogit()` in case of multiple `random` formulas HOT 3
- Syntax for increasing iterations of mblogit model HOT 1
- systematic error with nested model HOT 2
- Frequent error in mblogit "Error in solve.default(Information) : system is computationally singular: reciprocal condition number" with models that run OK in nnet::multinom HOT 4
- Error "Error: no valid set of coefficients has been found: please supply starting values" for model that runs OK in nnet::multinom HOT 2
- [Question] Interpreting and plotting a mblogit model
- Feature request: allow some form of regularisation in multinomial fits? HOT 2
- Problem with random effect: In sqrt(diag(vcov.phi)) : NaNs produced HOT 2
- Error in formula HOT 5
- `summary` printing odd behaviour depending on response level names HOT 1
- Equivalent functions from lme4. HOT 1
- `Warning: Inner iterations did not coverge` and an advise about model structure HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mclogit.